diff options
Diffstat (limited to 'code/nav.inc.php')
-rw-r--r-- | code/nav.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/code/nav.inc.php b/code/nav.inc.php index 1a4a5bd..642efe0 100644 --- a/code/nav.inc.php +++ b/code/nav.inc.php @@ -2,13 +2,13 @@ if(!defined('NAV_INC')) { define('NAV_INC', 1); - include('code/links.inc.php'); + require_once('code/links.inc.php'); class Nav { var $entries = array(); function Nav() { - $res = $GLOBALS['db']->Query('SELECT * FROM nav ORDER BY id'); + $res = $GLOBALS['db']->Execute('SELECT * FROM nav ORDER BY id'); while(!$res->EOF) { $this->entries[$res->fields[0]] = new NavEntry($res->fields[1], $res->fields[2], $res->fields[3]); |