diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-01-24 19:38:40 +0100 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-01-24 19:38:40 +0100 |
commit | 0d34cd24abc0329aae7d408b3bab3d692caaa045 (patch) | |
tree | ff0751391eeb3023d4a9eda4168c30b596449255 /lib | |
parent | 1f4edd70cbe28783784c41eda6c93008bbf86a78 (diff) |
Update notice deletion
Changed the errors in notice deletion so it now works. Also,
consistently delete records from related tables that refer
to the notice.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util.php | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/util.php b/lib/util.php index b5b194519..a80c62287 100644 --- a/lib/util.php +++ b/lib/util.php @@ -1140,23 +1140,6 @@ function common_enqueue_notice($notice) return $result; } -function common_dequeue_notice($notice) -{ - $qi = Queue_item::staticGet($notice->id); - if ($qi) { - $result = $qi->delete(); - if (!$result) { - $last_error = &PEAR::getStaticProperty('DB_DataObject','lastError'); - common_log(LOG_ERR, 'DB error deleting queue item: ' . $last_error->message); - return false; - } - common_log(LOG_DEBUG, 'complete dequeueing notice ID = ' . $notice->id); - return $result; - } else { - return false; - } -} - function common_real_broadcast($notice, $remote=false) { $success = true; |