From e8169f73d366b446b55684cac7984d8ea059dc77 Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Wed, 25 May 2005 20:53:14 +0000 Subject: [PATCH] Make PEAR DB decide if a want TRUE or 1 in my database for portability. --- lib/dashboard/Dashboard.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dashboard/Dashboard.inc b/lib/dashboard/Dashboard.inc index 01fa69b..ae2a422 100644 --- a/lib/dashboard/Dashboard.inc +++ b/lib/dashboard/Dashboard.inc @@ -78,7 +78,7 @@ class Dashboard { function getPendingCollaborationDocuments(){ global $default; - $sQuery = array("SELECT document_id FROM $default->folders_user_roles_table WHERE active=1 AND user_id = ?", $this->iUserID);/*ok*/ + $sQuery = array("SELECT document_id FROM $default->folders_user_roles_table WHERE active = ? AND user_id = ?", array(true, $this->iUserID));/*ok*/ $aDocumentList = array(); $sql = $default->db; if ($sql->query($sQuery)) { @@ -137,7 +137,7 @@ class Dashboard { */ function getPublicFolders() { global $default; - $sQuery = array("SELECT id FROM $default->folders_table WHERE is_public = 1"); + $sQuery = array("SELECT id FROM $default->folders_table WHERE is_public = ?", array(true)); $aFolderList = array(); $sql = $default->db; $sql->query($sQuery); -- libgit2 0.21.4