dever 6 anni fa
parent
commit
83d5e4ef9b
1 ha cambiato i file con 1 aggiunte e 5 eliminazioni
  1. 1 5
      src/Database.php

+ 1 - 5
src/Database.php

@@ -158,16 +158,12 @@ class Database
     private function getUrlParam($key, $table, $suffix, $state)
     {
         $param = '';
-        $oper = '';
         $array = array('project', 'add', 'list', 'update');
         if (in_array($key, $array)) {
-
             $oper = Dever::preInput('oper_');
             if ($oper) {
                 $param .= '&' . http_build_query($oper);
-            }
-
-            if (!$oper) {
+            } else {
                 $where = Dever::preInput('search_');
                 if ($where) {
                     if (isset($where['where_id'])) {