commit c6ed536d9c0bb6bd0934d8c07e82e69d537e8881
parent 71cda6d1b7bf5366b2afc0659179f72623becbd0
Author: MTRNord <mtrnord1@gmail.com>
Date: Sun, 30 Nov 2014 16:19:48 +0100
fix fetch_object bug
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/backend/admin/user/login/check_auth.php b/core/backend/admin/user/login/check_auth.php
@@ -23,7 +23,7 @@
$hash=hash('sha512',$_SERVER['HTTP_USER_AGENT'].$ip);
$abfrage = "SELECT id, hash,vaildtime,userid FROM cookiedata WHERE hash = '$hash'";
$ergebnis = mysqli_query($connection, $abfrage);
- while($row = mysqli_fetch_object($connection, $ergebnis)){
+ while($row = mysqli_fetch_object($ergebnis)){
if ($row->hash == $hash){
$id_db = $row->id;
$expirtaion_time=$row->vaildtime;