Alexander Nicolaysen Sørnes : note: Add missing parentheses to SQL query
Alexander Nicolaysen Sørnes
asornes at winehq.org
Wed Jul 29 10:42:14 CDT 2009
Module: appdb
Branch: master
Commit: 46e3f876cf90effc0f01c81e034a16513fa5fd3b
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=46e3f876cf90effc0f01c81e034a16513fa5fd3b
Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date: Wed Jul 29 17:41:20 2009 +0200
note: Add missing parentheses to SQL query
---
include/note.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/note.php b/include/note.php
index 5074bb9..315d627 100644
--- a/include/note.php
+++ b/include/note.php
@@ -289,7 +289,7 @@ class Note {
$hResult = query_parameters("SELECT noteId FROM appNotes WHERE versionId = '?' OR (appId = '?' AND (versionId = '?' OR versionId = '?'))", $iVersionId, $oApp->objectGetId(), APPNOTE_SHOW_FOR_ALL, APPNOTE_SHOW_FOR_VERSIONS);
} else if($iAppId)
{
- $hResult = query_parameters("SELECT noteId FROM appNotes WHERE appId = '?' AND versionId = '?' OR versionId = '?'", $iAppId, APPNOTE_SHOW_FOR_ALL, APPNOTE_SHOW_FOR_APP);
+ $hResult = query_parameters("SELECT noteId FROM appNotes WHERE appId = '?' AND (versionId = '?' OR versionId = '?')", $iAppId, APPNOTE_SHOW_FOR_ALL, APPNOTE_SHOW_FOR_APP);
}
if(!$hResult)
More information about the wine-cvs
mailing list