projects
/
infodrom.org
/
service.infodrom.org
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edcbae7
)
No need to display the section heading when there are no URLs available
author
Joey Schulze
<joey@infodrom.org>
Sun, 1 May 2005 04:31:46 +0000
(
04:31
+0000)
committer
Joey Schulze
<joey@infodrom.org>
Sun, 1 May 2005 04:31:46 +0000
(
04:31
+0000)
src/LinuxTag/2005/projects/show.wml
patch
|
blob
|
history
diff --git
a/src/LinuxTag/2005/projects/show.wml
b/src/LinuxTag/2005/projects/show.wml
index
cd515c4
..
cdb6b7e
100644
(file)
--- a/
src/LinuxTag/2005/projects/show.wml
+++ b/
src/LinuxTag/2005/projects/show.wml
@@
-41,6
+41,10
@@
$query = sprintf ("SELECT oid,url,description FROM urls WHERE project = '%s'", $project);
$sth = pg_exec ($dbh, $query) or die("Datenbank-Abfrage!");
+ if (!strlen ($url) && pg_NumRows ($sth) == 0) {
+ return;
+ }
+
echo ("<strong>URLs</strong>:<br>");
if (strlen ($url)) {
printf (" <a href=\"%s\">%s</a> <br>", $url, $project);