1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-12 01:50:48 +01:00

various typos

This commit is contained in:
Savetheinternet 2011-06-07 15:27:46 +10:00
parent 7d03e2c527
commit b0a44e1a5c
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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'];