[Queue_item] There is no "modified" attribute
Fixes a regression introduced in ec86de2bc4
This commit is contained in:
parent
e8f5e34202
commit
b0b10cf186
|
@ -104,21 +104,14 @@ class Queue_item extends Managed_DataObject
|
|||
*/
|
||||
public function releaseClaim()
|
||||
{
|
||||
$modified = common_sql_now();
|
||||
// @fixme Consider $this->sqlValue('NULL')
|
||||
$ret = $this->query(sprintf(
|
||||
<<<'END'
|
||||
UPDATE queue_item
|
||||
SET claimed = NULL, modified = %1$s
|
||||
WHERE id = %2$d
|
||||
END,
|
||||
$this->_quote($modified),
|
||||
'UPDATE queue_item SET claimed = NULL WHERE id = %d',
|
||||
$this->getID()
|
||||
));
|
||||
|
||||
if ($ret) {
|
||||
$this->claimed = null;
|
||||
$this->modified = $modified;
|
||||
$this->encache();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user