From d67f4574219d654e71b719e229c0b98f663a1091 Mon Sep 17 00:00:00 2001 From: Rouslan Placella Date: Tue, 21 Jun 2011 21:51:49 +0100 Subject: [PATCH] PMA_slidingMessage() must accept invalid input objects. --- js/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/functions.js b/js/functions.js index c3900f33c4..f0966d0192 100644 --- a/js/functions.js +++ b/js/functions.js @@ -2463,7 +2463,7 @@ function PMA_slidingMessage(msg, $obj) { // Don't show an empty message return false; } - if ($obj == undefined || ! $obj instanceof jQuery) { + if ($obj == undefined || ! $obj instanceof jQuery || $obj.length == 0) { // If the second argument was not supplied, // we might have to create a new DOM node. if ($('#PMA_slidingMessage').length == 0) {