X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fsettag.php;h=3c234f2c31cdc430321c17d4abd082c94476a00c;hb=e8d1bb25469fe1ef0cbcb32c3022010997aca4b0;hp=ca260f7bf9456822fb42139299fe545960b1cae7;hpb=7065450f03078fb1ac2105b75f9c7a4e052bca9c;p=quix0rs-gnu-social.git diff --git a/scripts/settag.php b/scripts/settag.php index ca260f7bf9..3c234f2c31 100644 --- a/scripts/settag.php +++ b/scripts/settag.php @@ -31,7 +31,7 @@ With -d, delete the tag. END_OF_SETTAG_HELP; -require_once INSTALLDIR.'/scripts/commandline.inc'; +require_once INSTALLDIR.'/scripts/commandline.inc.php'; if (count($args) < 1) { show_help(); @@ -66,12 +66,12 @@ if ($i !== false) { } } else { print "Already set.\n"; - exit(-1); + exit(0); } } else { if (have_option('d', 'delete')) { // Delete print "No such tag.\n"; - exit(-1); + exit(0); } else { $tags[] = $tag; $result = $sn->setTags($tags);