Module: appdb Branch: master Commit: 46e3f876cf90effc0f01c81e034a16513fa5fd3b URL: http://source.winehq.org/git/appdb.git/?a=commit;h=46e3f876cf90effc0f01c81e0...
Author: Alexander Nicolaysen Sørnes alex@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)