From e79d6d6595d3ff915870e3bb38f9ea180a21b696 Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Wed, 26 Mar 2014 14:05:51 +0000 Subject: [PATCH] Missing $db in upnp --- upnp/m_upnp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upnp/m_upnp.php b/upnp/m_upnp.php index e7f93583..0f2b93ce 100644 --- a/upnp/m_upnp.php +++ b/upnp/m_upnp.php @@ -108,7 +108,7 @@ class m_upnp { /** cron launched every minute to check the status of UPnP forwarding */ function cron() { - global $hooks,$L_INTERNAL_IP,$PUBLIC_IP; + global $hooks,$db,$L_INTERNAL_IP,$PUBLIC_IP; // if we check anything less than 5 minutes ago, or if the upnp table is empty, let's make a check... $db->query("SELECT UNIX_TIMESTAMP(lastcheck) AS lc, * FROM upnp ORDER BY lastcheck ASC;"); $forwards=array();