bug 1010: Fixed variable names
authorINOPIAE <inopiae@cacert.org>
Sun, 14 Jul 2013 21:12:40 +0000 (23:12 +0200)
committerINOPIAE <inopiae@cacert.org>
Sun, 14 Jul 2013 21:12:40 +0000 (23:12 +0200)
includes/account.php
pages/account/18.php
pages/account/22.php

index 3b9e685..32788b8 100644 (file)
        if($oldid == 22 && array_key_exists('filter',$_REQUEST) && $_REQUEST['filter']!= "")
        {
                $id=22;
-               $_SESSION['_config']['orgfilterid']=$_REQUEST['orgfilterid'];
-               $_SESSION['_config']['sorting']=$_REQUEST['sorting'];
-               $_SESSION['_config']['status']=$_REQUEST['status'];
+               $_SESSION['_config']['dorgfilterid']=$_REQUEST['orgfilterid'];
+               $_SESSION['_config']['dsorting']=$_REQUEST['sorting'];
+               $_SESSION['_config']['dstatus']=$_REQUEST['status'];
        }
 
        if($oldid == 22 && array_key_exists('reset',$_REQUEST) && $_REQUEST['reset']!= "")
        {
                $id=22;
-               $_SESSION['_config']['orgfilterid']=0;
-               $_SESSION['_config']['sorting']=0;
-               $_SESSION['_config']['status']=0;
+               $_SESSION['_config']['dorgfilterid']=0;
+               $_SESSION['_config']['dsorting']=0;
+               $_SESSION['_config']['dstatus']=0;
        }
 
 
index e1b92a5..8196506 100644 (file)
@@ -39,7 +39,7 @@ $status = array_key_exists('status',$_SESSION['_config']) ? intval($_SESSION['_c
       ORDER BY `orginfo`.`O` ";
     $reso = mysql_query($query);
     if(mysql_num_rows($reso) >= 1){
-      while($row = mysql_fetch_assoc($res)){
+      while($row = mysql_fetch_assoc($reso)){
         printf("<option value='%d' %s>%s</option>",$row['id'], $row['id'] == $orgfilterid? " selected" : "" , $row['O']);
       }
     }?>
index 581e19a..50f2b81 100644 (file)
@@ -38,7 +38,7 @@ $status = array_key_exists('dstatus',$_SESSION['_config']) ? intval($_SESSION['_
       ORDER BY `orginfo`.`O` ";
     $reso = mysql_query($query);
     if(mysql_num_rows($reso) >= 1){
-      while($row = mysql_fetch_assoc($res)){
+      while($row = mysql_fetch_assoc($reso)){
         printf("<option value='%d' %s>%s</option>",$row['id'], $row['id'] == $orgfilterid? " selected" : "" , $row['O']);
       }
     }?>
@@ -86,7 +86,7 @@ $status = array_key_exists('dstatus',$_SESSION['_config']) ? intval($_SESSION['_
 
     if($orgfilterid>0)
     {
-      $query .= "AND `org`.`orgid`=$dorgfilterid ";
+      $query .= "AND `org`.`orgid`=$orgfilterid ";
     }
 
     if(0==$status)