projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c961b72
)
Catch queries without results.
author
Jan Schneider
<jan@horde.org>
Tue, 1 Feb 2011 15:13:23 +0000
(16:13 +0100)
committer
Jan Schneider
<jan@horde.org>
Tue, 1 Feb 2011 15:13:23 +0000
(16:13 +0100)
horde/admin/sqlshell.php
patch
|
blob
|
history
diff --git
a/horde/admin/sqlshell.php
b/horde/admin/sqlshell.php
index
097d2d5
..
5c637da
100644
(file)
--- a/
horde/admin/sqlshell.php
+++ b/
horde/admin/sqlshell.php
@@
-56,7
+56,7
@@
if (isset($result)) {
echo '<h1 class="header">' . _("Results") . '</h1>';
- if (is_object($result)) {
+ if (is_object($result)
&& $result->columnCount()
) {
echo '<table cellspacing="1" class="item striped">';
$first = true;
$i = 0;
@@
-89,7
+89,7
@@
if (isset($result)) {
}
echo '</table>';
} else {
- echo '<
strong>' . _("Success") . '</strong
>';
+ echo '<
p><strong>' . _("Success") . '</strong></p
>';
}
}
?>