0002571
authorheidi valles <hvalles@ocad.ca>
Mon, 26 Jun 2006 19:32:35 +0000 (19:32 -0000)
committerheidi valles <hvalles@ocad.ca>
Mon, 26 Jun 2006 19:32:35 +0000 (19:32 -0000)
docs/blogs/index.php

index 254505a..2d96e31 100644 (file)
@@ -20,6 +20,7 @@ $result = mysql_query($sql, $db);
 \r
 echo '<ol id="tools">';\r
 \r
+$blogs = false;\r
 while ($row = mysql_fetch_assoc($result)) {\r
        if (strpos($row['modules'], '_standard/blogs') !== FALSE) {\r
                // retrieve the last posted date/time from this blog\r
@@ -32,9 +33,14 @@ while ($row = mysql_fetch_assoc($result)) {
                }\r
 \r
                echo '<li class="top-tool"><a href="blogs/view.php?ot='.BLOGS_GROUP.SEP.'oid='.$row['group_id'].'">'.$row['title'].$last_updated.'</a></li>';\r
+               $blogs = true;\r
        }\r
 }\r
 echo '</ol>';\r
+\r
+if (!$blogs) {\r
+       echo _AT('none_found');\r
+}\r
 ?>\r
 \r
 <?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file