Fix PHP notice: requiredby array

Required by query does not have a dep condition element.

Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Dan McGee 2011-03-01 11:29:59 -06:00 committed by Lukas Fleischer
parent 9b51f2d842
commit f4fd7f7c9b

View file

@ -145,12 +145,11 @@ $out_of_date_time = ($row["OutOfDateTS"] == 0) ? $msg : gmdate("r", intval($row[
}
reset($pkgsearch_vars);
# $darr[3] is the DepCondition
if ($darr[2] == 0) {
echo $url . "'>" . $darr[1] . $darr[3] . "</a>";
echo $url . "'>" . $darr[1] . "</a>";
}
else {
print "<a href='http://www.archlinux.org/packages/search/?q=".$darr[1]."'>".$darr[1].$darr[3]."</a>";
print "<a href='http://www.archlinux.org/packages/search/?q=".$darr[1]."'>".$darr[1]."</a>";
}
}