Commit 2eaf52dd authored by Kevin Stover's avatar Kevin Stover Committed by GitHub

add array check. (#2174)

parent 45d4853d
......@@ -331,8 +331,10 @@ class NF_Abstracts_Model
*/
public function update_settings( $data )
{
foreach( $data as $key => $value ){
$this->update_setting( $key, $value );
if( is_array( $data ) ) {
foreach ($data as $key => $value) {
$this->update_setting($key, $value);
}
}
return $this;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment