]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Fixed typo in sql query and variable name
authorDavide Franco <bacula-dev@dflc.ch>
Tue, 12 Jul 2011 05:10:53 +0000 (07:10 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:22 +0000 (14:49 +0200)
gui/bacula-web/jobs.php

index 3eeb9a575d7bb9d6e5a7502301b1dd728b312da0..35bf7737e82a328cd6ffd702dc8eb088b7d9a3b7 100644 (file)
@@ -61,7 +61,7 @@
                        $query .= "WHERE Job.JobStatus = 'T' ";
                break;
                case STATUS_FAILED:
-                       $query .= "WHERE Job.JobStatus = 'f', 'E' ";
+                       $query .= "WHERE Job.JobStatus IN ('f', 'E') ";
                break;
                case STATUS_CANCELED:
                        $query .= "WHERE Job.JobStatus = 'A' ";
@@ -87,7 +87,7 @@
   $jobsresult = $dbSql->db_link->query( $query );
   
   if( PEAR::isError( $jobsresult ) ) {
-         $dbSql->TriggerDBError( "Unable to get last failed jobs from catalog", $jobresult );
+         $dbSql->TriggerDBError( "Unable to get last failed jobs from catalog", $jobsresult );
   }else {
          while( $job = $jobsresult->fetchRow( DB_FETCHMODE_ASSOC ) ) {