summaryrefslogtreecommitdiffstats
path: root/inc/image.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/image.inc.php')
-rw-r--r--inc/image.inc.php8
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'];