diff options
Diffstat (limited to 'header.php')
-rw-r--r-- | header.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/header.php b/header.php index 3b0dc8b..ebdee99 100644 --- a/header.php +++ b/header.php | |||
@@ -23,8 +23,11 @@ if (isset($title)) | |||
23 | 23 | ||
24 | include_once('db.php'); | 24 | include_once('db.php'); |
25 | 25 | ||
26 | $getlast = mysql_fetch_array(mysql_query("SELECT * FROM config WHERE name = \"lastUpdated\"")); | 26 | $getlast = "SELECT * FROM config WHERE name = \"lastUpdated\""; |
27 | $last = $getlast['value']; | 27 | $getlast2 = mysql_query($getlast); |
28 | $getlast3 = mysql_fetch_array($getlast2); | ||
29 | |||
30 | $last = $getlast3['value']; | ||
28 | if ($last != date('md')) | 31 | if ($last != date('md')) |
29 | { | 32 | { |
30 | $getpending = "SELECT * FROM pending ORDER BY id ASC LIMIT 0,1"; | 33 | $getpending = "SELECT * FROM pending ORDER BY id ASC LIMIT 0,1"; |