commit 6f5d9dbd8f3df63d2014e8b8dd73b79076c7f549
parent b0073da10ae6fb1f0c389a8885ca084821af5d31
Author: MTRNord <mtrnord1@gmail.com>
Date: Sat, 17 Jan 2015 10:16:30 +0100
now it should work
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/themes/jumbotron/admin.php b/themes/jumbotron/admin.php
@@ -35,13 +35,15 @@ if (mysqli_connect_errno()) {
}
if ($resultat = $connection->query('SELECT email FROM allowed_user')) {
+ $allowed_user = $resultat;
while($daten = $resultat->fetch_object() ){
$allowed_user = $resultat;
}
#$resultat->close();
}
-var_dump($allowed_user);
-$user = "test";
+if (!isset($allowed_user)) {
+ echo "You not logged in!";
+}
foreach ($allowed_user as $subarray){
if(in_array($user, $subarray)){