|
@@ -634,7 +634,7 @@ class NotificationsManager {
|
634
|
634
|
return $Results;
|
635
|
635
|
}
|
636
|
636
|
|
637
|
|
- public static function save_settings($UserID, $Settings) {
|
|
637
|
+ public static function save_settings($UserID, $Settings = false) {
|
638
|
638
|
if (!is_array($Settings)) {
|
639
|
639
|
// A little cheat technique, gets all keys in the $_POST array starting with 'notifications_'
|
640
|
640
|
$Settings = array_intersect_key($_POST, array_flip(preg_grep('/^notifications_/', array_keys($_POST))));
|