diff options
author | Simon Rettberg | 2015-09-10 15:15:28 +0200 |
---|---|---|
committer | Simon Rettberg | 2015-09-10 15:15:28 +0200 |
commit | 93d1acd95d1bf99d3f428abdd85078d1bac7119f (patch) | |
tree | 03e6169d4f1839b2a34ba9dd5b572a5de1c553b3 /inc/image.inc.php | |
parent | Allow registration, add support for creating test accounts, rename satellite ... (diff) | |
download | bwlp-webadmin-93d1acd95d1bf99d3f428abdd85078d1bac7119f.tar.gz bwlp-webadmin-93d1acd95d1bf99d3f428abdd85078d1bac7119f.tar.xz bwlp-webadmin-93d1acd95d1bf99d3f428abdd85078d1bac7119f.zip |
Adapt to master-server changes (Db scheme)
Diffstat (limited to 'inc/image.inc.php')
-rw-r--r-- | inc/image.inc.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/inc/image.inc.php b/inc/image.inc.php index 5b8f077..1bad04f 100644 --- a/inc/image.inc.php +++ b/inc/image.inc.php @@ -7,14 +7,14 @@ class Image { if ($userid === false || !is_numeric($userid)) return false; - return Database::exec('DELETE FROM image WHERE ownerid = :userid', array('userid' => $userid)); + //return Database::exec('DELETE FROM image WHERE ownerid = :userid', array('userid' => $userid)); + // TODO } public static function getImageCount($login) { - $ret = Database::queryFirst('SELECT Count(*) AS cnt FROM image ' - . ' INNER JOIN user ON (image.ownerid = user.userid) ' - . ' WHERE user.login = :login', array('login' => $login)); + $ret = Database::queryFirst('SELECT Count(*) AS cnt FROM imagebase ' + . ' WHERE imagebase.ownerid = :userid', array('userid' => $login)); if ($ret === false) return 0; return $ret['cnt']; |