diff options
Diffstat (limited to 'includes/functions.php')
-rw-r--r-- | includes/functions.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/includes/functions.php b/includes/functions.php index 5d3dc7d..09fc456 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -621,9 +621,7 @@ function GetBlocks($position = BLOCK_LEFT) $query = sprintf("SELECT block_id, active, weight, position, dir_name, title FROM bayonet_blocks WHERE active = 1 AND position = %d ORDER BY weight", (int)$position); $result = $db->Query($query); - /* Is the result valid? */ - if($db->Rows($result) < 1) - return false; + $blocks = $db->Fetch($result); if(empty($blocks)) return; |