Explorar o código

add admin view

andre %!s(int64=4) %!d(string=hai) anos
pai
achega
56fae1659e
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      action.php

+ 3 - 2
action.php

@@ -35,11 +35,12 @@ class action {
         $dbAction->execute();
         $dbAction->store_result();
         $dbAction->bind_result($ip);
-        while($dbAction->fetch()) {
+/*        while($dbAction->fetch()) {
             array_push($list,$ip);
         };
         print_r($list);
-        return $list;
+        return $list;*/
+        return $dbAction->fetch_all();
     }
 
     private function isListed($ip) {