]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
try/catch just in case..
authorJames Walker <walkah@walkah.net>
Wed, 28 Jul 2010 16:04:37 +0000 (12:04 -0400)
committerJames Walker <walkah@walkah.net>
Wed, 28 Jul 2010 16:04:37 +0000 (12:04 -0400)
scripts/fixup_status_network.php

index dae492a8601dc5337cbe541bc340eb1481d20805..def1eaa884d76226b5b0283c1d1b846a9eb00005 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-print "BEGIN\n";
 define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
 
 require_once INSTALLDIR.'/scripts/commandline.inc';
 
-common_log(LOG_INFO, 'Beginning conversion...');
+common_log(LOG_INFO, 'Beginning status_network conversion...');
 
 $sn = new Status_network();
 $sn->find();
 while ($sn->fetch()) {
-    $sn->setTags(explode('|', $sn->tags));
+    try {
+        $sn->setTags(explode('|', $sn->tags));
+    } catch (Exception $e) {
+        common_log(LOG_ERR, $e->getMessage());
+    }
 }
+
+common_log(LOG_INFO, 'Completed status_network conversion...');