bugfix: the slice page was broken when nobody is in slice
[plewww.git] / modules / planetlab.module
index 5d9d7f4..b20412c 100644 (file)
@@ -8,8 +8,6 @@
   // $Id$
   //
 
-//error_reporting(0);
-
 require_once 'plc_config.php';
 require_once 'plc_session.php';
 require_once 'plc_functions.php';
@@ -106,8 +104,7 @@ function planetlab_block($op = 'list', $delta = 0, $edit = array()) {
   } else if ($op == 'view') {
     $block = array();
 
-//    if ($plc->hide_planetlab_block) {
-    if (false) {
+    if (property_exists($plc, 'hide_planetlab_block')) {
       // do nothing
       // this is a private hook from the Vicci module to hide the planetlab module
     } else if (!$plc->person) {