diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/lib/pkgfuncs.inc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index d9e2c13f..e4323554 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -251,14 +251,13 @@ function pkgnotify_from_sid($sid="") { # function pkgname_from_id($pkgid=0) { $pkgid = intval($pkgid); + $name = ""; if ($pkgid > 0) { $dbh = db_connect(); $q = "SELECT Name FROM Packages WHERE ID = " . $pkgid; $result = db_query($q, $dbh); if (mysql_num_rows($result) > 0) { $name = mysql_result($result, 0); - } else { - $name = ""; } } return $name; |