None is equal to zero for php. use === operator to check the type
[plewww.git] / planetlab / sites / sites.php
index 8eb5a03..9b188b9 100644 (file)
@@ -51,7 +51,7 @@ function site_status ($site) {
     if ( ! $site['enabled']) 
       $messages [] = "Not enabled";
     global $PENDING_CONSORTIUM_ID;
-    if ( $site['ext_consortium_id'] == $PENDING_CONSORTIUM_ID )
+    if ( $site['ext_consortium_id'] === $PENDING_CONSORTIUM_ID )
       $messages [] = "Pending registration";
   
     // check that site has at least a PI and a tech