END_OF_HELP;
-require_once INSTALLDIR.'/scripts/commandline.inc';
+require_once INSTALLDIR.'/scripts/commandline.inc.php';
try {
$user = getUser();
$gnick = get_option_value('g', 'group');
$lgroup = Local_group::getKV('nickname', $gnick);
}
- if (empty($lgroup)) {
+ if (!$lgroup instanceof Local_group) {
throw new Exception("No such local group: $gnick");
}
$group = User_group::getKV('id', $lgroup->group_id);