aboutsummaryrefslogtreecommitdiff
path: root/includes/functions.php
diff options
context:
space:
mode:
authorjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2010-01-07 22:10:43 -0500
committerjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2010-01-07 22:10:43 -0500
commit2b31e8a6f30ebcd145b3394ac1a2ef8a768924ac (patch)
tree8d3b8efebe7195ff614f562cc1902027b8638f78 /includes/functions.php
parent3fcd856339e8f1daa1a7f51f0d2a7ff019ed7526 (diff)
downloadbayonetcms-2b31e8a6f30ebcd145b3394ac1a2ef8a768924ac.tar.gz
The download module mostly works/looks the way it should.
Bayonet_SQL now checks for a valid result, and if it is invalid just return. git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@460 c5b2fb0a-d05d-0410-98c8-828840a80ff6
Diffstat (limited to 'includes/functions.php')
-rw-r--r--includes/functions.php4
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;