bugfix: the slice page was broken when nobody is in slice
[plewww.git] / planetlab / includes / plc_session.php
index ebdc050..a3cca09 100644 (file)
 // Mark Huang <mlhuang@cs.princeton.edu>
 // Copyright (C) 2006 The Trustees of Princeton University
 //
-// $Id$ $
-//
+
+// warning: Undefined array key "#validated" in /var/www/html/includes/form.inc on line 228.
+
+set_error_handler(function(int $errno, string $errstr) {
+    if ((strpos($errstr, 'Undefined array key') !== false) && (strpos($errstr, '/var/www/html/includes/') !== false))
+        return false;
+    // for filtering undefined variables
+//        if (strpos($errstr, 'Undefined variable') !== false)
+//        return false;
+    return true;
+    }, E_WARNING);
+
 
 // Usually in /etc/planetlab/php
 require_once 'plc_config.php';