Remove more references of activity_id

This commit is contained in:
Joas Schilling 2014-06-03 11:56:36 +02:00
Родитель 8bfc9edaf4
Коммит 9d1a618f9c
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -227,7 +227,7 @@ class Data
// fetch from DB
$query = \OCP\DB::prepare(
'SELECT `activity_id`, `app`, `subject`, `subjectparams`, `message`, `messageparams`, `file`, `link`, `timestamp`, `priority`, `type`, `user`, `affecteduser` '
'SELECT * '
. ' FROM `*PREFIX*activity` '
. ' WHERE `affecteduser` = ? ' . $limitActivitiesType
. ' ORDER BY `timestamp` desc',
@ -250,7 +250,7 @@ class Data
// search in DB
$query = \OCP\DB::prepare(
'SELECT `activity_id`, `app`, `subject`, `subjectparams`, `message`, `messageparams`, `file`, `link`, `timestamp`, `priority`, `type`, `user`, `affecteduser` '
'SELECT * '
. ' FROM `*PREFIX*activity` '
. 'WHERE `affecteduser` = ? AND ((`subject` LIKE ?) OR (`message` LIKE ?) OR (`file` LIKE ?)) ' . $limitActivitiesType
. 'ORDER BY `timestamp` desc'