Browse Source

php is still strict about this stuff now

spaghetti 2 years ago
parent
commit
2b211405d0
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      classes/notificationsmanager.class.php

+ 1
- 1
classes/notificationsmanager.class.php View File

@@ -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))));

Loading…
Cancel
Save