Make the type parameter of pkgreq_by_pkgbase() optional
commit01bfae82ce90e5f98180fb920479ed72977c0385
authorLukas Fleischer <lfleischer@archlinux.org>
Thu, 21 May 2015 15:08:58 +0000 (21 17:08 +0200)
committerLukas Fleischer <lfleischer@archlinux.org>
Thu, 21 May 2015 15:10:33 +0000 (21 17:10 +0200)
treed82ad3d3e6ecf06b59212c32e00841e442e2965b
parentc3614c4f097f1a37485672b04759c5c163f1cf42
Make the type parameter of pkgreq_by_pkgbase() optional

This simplifies the code a bit, improves maintainability and reduces the
number of SQL queries when deleting a package.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
web/lib/pkgbasefuncs.inc.php
web/lib/pkgreqfuncs.inc.php