nlopess Sun Apr 18 12:12:02 2004 EDT
Modified files:
/livedocs style_mapping.php
Log:
print a default message if no version information was found
http://cvs.php.net/diff.php/livedocs/style_mapping.php?r1=1.7&r2=1.8&ty=u
Index: livedocs/style_mapping.php
diff -u livedocs/style_mapping.php:1.7 livedocs/style_mapping.php:1.8
--- livedocs/style_mapping.php:1.7 Sun Apr 18 11:02:33 2004
+++ livedocs/style_mapping.php Sun Apr 18 12:12:02 2004
@@ -18,7 +18,7 @@
// | Helper functions for formatting elements |
// +----------------------------------------------------------------------+
//
-// $Id: style_mapping.php,v 1.7 2004/04/18 15:02:33 nlopess Exp $
+// $Id: style_mapping.php,v 1.8 2004/04/18 16:12:02 nlopess Exp $
// almost XPATH.. ;-)
$map = array(
@@ -164,6 +164,8 @@
$q = sqlite_query($idx, "SELECT versinfo FROM funcs where
funcname='$func_name'");
if ($q && $r = sqlite_fetch_array($q, SQLITE_NUM)) {
$vers = sprintf('<div class="versinfo">%s</div>', $r[0]);
+ } else {
+ $vers = '<div class="versinfo">no version information, might
be only in CVS</div>';
}
$print_version = 1;
}