Code

Fixed typo
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 13 Jan 2010 14:32:34 +0000 (14:32 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 13 Jan 2010 14:32:34 +0000 (14:32 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15163 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_sortableListing.inc

index d023584cf3461e53f744fbe954c69b0983c0ea34..b87136c612f27a00d41ea01159de3103bd41fe90 100644 (file)
@@ -31,7 +31,7 @@ class sortableListing {
 
   private $data= array();
   private $columns= 0;
-  private $deletable= false;
+  private $deleteable= false;
   private $editable= false;
   private $instantDelete= true;
   private $action;
@@ -49,7 +49,7 @@ class sortableListing {
 
     // Generate instance wide unique ID
     $tmp= gettimeofday();
-    $this->id= 'l'.md5($t['sec']);
+    $this->id= 'l'.md5($tmp['sec']);
   }
 
 
@@ -133,6 +133,7 @@ class sortableListing {
     $delete_image= $this->deleteable?"<input class='center' type='image' src='images/lists/trash.png' alt='"._("Delete")."' name='%ID' title='"._("Delete this entry")."'>":"";
 
     // Do we need colspecs?
+    $action_width= ($this->editable?20:0) + ($this->deleteable?20:0);
     if ($this->colspecs) {
       $result.= " <colgroup>\n";
       for ($i= 0; $i<$this->columns; $i++) {
@@ -140,7 +141,6 @@ class sortableListing {
       }
 
       // Extend by another column if we've actions specified
-      $action_width= ($this->editable?20:0) + ($this->deleteable?20:0);
       if ($action_width) {
         $result.= "  <col width='$action_width'/>\n";
       }