aurweb/web
Lukas Fleischer c557f348c4 Fix SQL query to retrieve language setting
In commit e171f6f (Migrate all DB code to use PDO, 2012-08-08),
PDOStatement::fetchAll() was introduced as a drop-in replacement for
mysql_fetch_array(). However, PDOStatement::fetchAll() returns a list of
all results while mysql_fetch_array() returns a single result only.
Instead of adding the missing indirection, simplify the code by using
PDO::fetchColumn().

Also add some safeguards to prevent warnings if the result set returned
by the query is empty.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2017-02-27 19:49:15 +01:00
..
html pkgflag.php: Remove stray variable 2017-02-27 18:20:00 +01:00
lib Fix SQL query to retrieve language setting 2017-02-27 19:49:15 +01:00
locale Add dummy "web/locale/" directory. 2011-04-10 15:40:49 +02:00
template Always use source_file_uri instead of pkgbuild_uri 2017-02-27 18:19:08 +01:00