Index: trunk/gridctl.php
===================================================================
--- trunk/gridctl.php	(revision 17)
+++ trunk/gridctl.php	(revision 18)
@@ -8,4 +8,5 @@
 
 //global $self;
+global $status_ex, $status_gw;
 
 // Produce some output temporarily, so cron will send me message
@@ -679,4 +680,5 @@
    global $loghdr;
    global $cluster;
+   global $status_ex, $status_gw;
 
    if ( is_aira_job( $gfacID ) )
@@ -686,7 +688,7 @@
       if ( $status_ex == 'EXECUTING' )
       {
-         if ( $gfac_status == 'SUBMITTED' )
+         if ( $status_gw == 'SUBMITTED' )
             $status_ex    = 'QUEUED';
-         if ( $gfac_status == 'RUNNING' )
+         if ( $status_gw == 'RUNNING' )
             $status_ex    = 'ACTIVE';
       }
