]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
got two lines reversed
authorEvan Prodromou <evan@prodromou.name>
Wed, 27 Aug 2008 21:19:40 +0000 (17:19 -0400)
committerEvan Prodromou <evan@prodromou.name>
Wed, 27 Aug 2008 21:19:40 +0000 (17:19 -0400)
darcs-hash:20080827211940-84dde-d5b404023a2fb6b74b6255dd91910c9ec7df3cc6.gz

lib/util.php

index cea0c3992f71b6a64c7afd0b8e3b2fb4dd8a4a24..40f9e1a1bb2be0eecf8c5d273d98263f844fc731 100644 (file)
@@ -1075,8 +1075,8 @@ function common_enqueue_notice($notice) {
                $qi->notice_id = $notice->id;
                $qi->transport = $transport;
                $qi->created = $notice->created;
-               if (!$result) {
         $result = $qi->insert();
+               if (!$result) {
                        $last_error = &PEAR::getStaticProperty('DB_DataObject','lastError');
                        common_log(LOG_ERR, 'DB error inserting queue item: ' . $last_error->message);
                        return false;