initial vars and absolute R_ things in sh/node sh/lockout and sh/isolate
[spider.git] / cmd / show / isolate.pl
index c874e8a8f930f46ef16e818da4de018238dea7af..bb66e5177777a7d9069e7a5537eae934e2733a15 100644 (file)
@@ -15,8 +15,8 @@ my @out;
 
 use DB_File;
 
-my ($action, $count, $key, $data);
-for ($action = R_FIRST, $count = 0; !$DXUser::dbm->seq($key, $data, $action); $action = R_NEXT) {
+my ($action, $count, $key, $data) = (0,0,0,0);
+for ($action = DXUser::R_FIRST, $count = 0; !$DXUser::dbm->seq($key, $data, $action); $action = DXUser::R_NEXT) {
        if ($data =~ m{isolate =>}) {
                my $u = DXUser->get_current($key);
                if ($u && $u->isolate) {