Check query return value in db_cache_value()
commit4f662c773dd70145640074f2659954e8f8a3daef
authorLukas Fleischer <lfleischer@archlinux.org>
Tue, 18 Apr 2017 06:36:29 +0000 (18 08:36 +0200)
committerLukas Fleischer <lfleischer@archlinux.org>
Tue, 18 Apr 2017 06:40:22 +0000 (18 08:40 +0200)
treed646b65155088d328eb2eb316b185a277273c52f
parent6090c2ae8b6b33af79cae2ed63ebe5209d0729b3
Check query return value in db_cache_value()

Instead of unconditionally calling fetch on the return value of query(),
error out early if the value evaluates to false.

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