Browse Source

various typos

pull/40/head
Savetheinternet 13 years ago
parent
commit
b0a44e1a5c
  1. 2
      templates/themes/rrdtool/cron.php
  2. 4
      templates/themes/rrdtool/theme.php

2
templates/themes/rrdtool/cron.php

@ -1,6 +1,6 @@
<?php
$_SERVER = Array('REQUEST_URI' => '', 'HTTP_HOST' => '', 'SCRIPT_FILENAME' => '');
chdir('../../..');
chdir('../../../');
require 'inc/functions.php';
require 'inc/display.php';

4
templates/themes/rrdtool/theme.php

@ -41,8 +41,8 @@
if($action == 'cron') {
$query = prepare(sprintf("SELECT COUNT(*) AS `count` FROM `posts_%s` WHERE `time` >= :time", $board));
$query->bindValue(':time', time() - $this->interval, PDO::PARAM_INT):
$query->exeucte() or error(db_error($query));
$query->bindValue(':time', time() - $this->interval, PDO::PARAM_INT);
$query->execute() or error(db_error($query));
$count = $query->fetch();
$count = $count['count'];

Loading…
Cancel
Save