]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/command.php
implement javascript callbacks (no remove yet)
[quix0rs-gnu-social.git] / scripts / command.php
index 8cf44ecd2d31425d3ced4b4f1efa7e75d3083d56..256743f5353bc43ff2c3a4c33957bd432d389223 100755 (executable)
@@ -64,8 +64,9 @@ if (have_option('i', 'id')) {
         exit(1);
     }
 } else if (have_option('o', 'owner')) {
-    $user = User::siteOwner();
-    if (empty($user)) {
+    try {
+        $user = User::siteOwner();
+    } catch (ServerException $e) {
         print "Site has no owner.\n";
         exit(1);
     }