From: Jan Schneider Date: Tue, 1 Feb 2011 15:13:23 +0000 (+0100) Subject: Catch queries without results. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=48ffd9e8c7ffcbfb001d6d0e385036d1954e547f;p=horde.git Catch queries without results. --- diff --git a/horde/admin/sqlshell.php b/horde/admin/sqlshell.php index 097d2d5d6..5c637da35 100644 --- a/horde/admin/sqlshell.php +++ b/horde/admin/sqlshell.php @@ -56,7 +56,7 @@ if (isset($result)) { echo '

' . _("Results") . '

'; - if (is_object($result)) { + if (is_object($result) && $result->columnCount()) { echo ''; $first = true; $i = 0; @@ -89,7 +89,7 @@ if (isset($result)) { } echo '
'; } else { - echo '' . _("Success") . ''; + echo '

' . _("Success") . '

'; } } ?>