[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    www/areas/cvs-digest/enzyme
From:       Derek Kite <dkite () netidea ! com>
Date:       2005-05-08 0:13:13
Message-ID: 1115511193.846999.18750.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 410592 by dkite:

if query failed, commitlist would display empty results. handle error properly.

 M  +4 -1      trunk/www/areas/cvs-digest/enzyme/enzyme_commitlist.php  


--- trunk/www/areas/cvs-digest/enzyme/enzyme_commitlist.php #410591:410592
@@ -118,6 +118,9 @@
     if (count($sel_data) != 4) return "Invalid selection $selection\n";
     $queryhash = array ("path" => $sel_data[0],"revision"=>$sel_data[1]);
     $query = new enzyme_query ($queryhash);
+    $g = $query->get_value_hash();
+    if ($g == "no data") continue;
+    
 //    $tmp = substr($sel_data[3],0,1);
      // category is 2, type is 3, module is 0
     if (array_key_exists("module",$this->request)) {
@@ -127,7 +130,7 @@
     else {  
     $ca = $sel_data[2].':'.$sel_data[3];
     }
-    $this->template->assigndata("commitlog",$ca,"",$query->get_value_hash());
+    $this->template->assigndata("commitlog",$ca,"",$g);
     $categoryarray[] = $ca;
     $typearray[] = $sel_data[2];
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic