0 ? $posts_per_page : 10; if(count($errors)) { Notifications::set('error', $errors); return false; } foreach($post as $key => $value) { Db::update('meta', array('value' => $value), array('key' => $key)); } Notifications::set('success', 'Your metadata has been updated'); return true; } }