Skip to content

Commit

Permalink
Small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianAker committed Aug 29, 2002
1 parent 59cdf19 commit 6c4a299
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion plugins/Zoo/Zoo.pm
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ sub countFoes {

sub count {
my($self, $uid) = @_;
$self->sqlCount('people', "uid = $uid AND type != NULL");
$self->sqlCount('people', "uid = $uid AND type is not NULL");
}

sub _get {
Expand Down
3 changes: 3 additions & 0 deletions plugins/Zoo/rebuildPeople
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ $slashdb->sqlDo("DELETE FROM people_log");
$slashdb->sqlDo("UPDATE people SET eof=0 AND fof=0");
my $entries = $slashdb->sqlSelectAll('uid, person, type', 'people');

my $num = @$entries;
my $x = 0;
for (@$entries) {
print "NUM " . ($x++) . " for $num \n";
if ($_->[2] eq 'friend') {
$zoo->setFriend($_->[0], $_->[1]);
} elsif ($_->[2] eq 'foe') {
Expand Down
7 changes: 2 additions & 5 deletions themes/slashcode/htdocs/topics.pl
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@
sub main {
my $slashdb = getCurrentDB();
my $form = getCurrentForm();
my $section = $slashdb->getSection();

header(getData('head'));
print createMenu('topics');

if ($form->{op} eq 'toptopics') {
topTopics($section);
topTopics();
} else {
listTopics();
}
Expand All @@ -29,12 +28,10 @@ sub main {

#################################################################
sub topTopics {
my($section) = @_;
my $slashdb = getCurrentDB();
my $form = getCurrentForm();
my $constants = getCurrentStatic();

$section->{issue} = 0; # should this be local() ? -- pudge
my $section = $slashdb->getSection();

my(@topics, $topics);
$topics = $slashdb->getTopNewsstoryTopics($form->{all});
Expand Down

0 comments on commit 6c4a299

Please sign in to comment.