From 8b21bac2bdf47f25a0bb08afbee4b47c7fa994b4 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Fri, 6 Apr 2007 13:43:04 +0000 Subject: [PATCH] undefined index when deleting a bookmark --- libraries/common.lib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 432871c77..938f89b4a 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -1410,7 +1410,9 @@ if (typeof(window.parent) != 'undefined' } // Parse SQL if needed - if (isset($GLOBALS['parsed_sql']) && $query_base == $GLOBALS['parsed_sql']['raw']) { + // (here, use "! empty" because when deleting a bookmark, + // $GLOBALS['parsed_sql'] is set but empty + if (! empty($GLOBALS['parsed_sql']) && $query_base == $GLOBALS['parsed_sql']['raw']) { $parsed_sql = $GLOBALS['parsed_sql']; } else { // when the query is large (for example an INSERT of binary