Fix errors and warnings diring installation

This commit is contained in:
Juribiyan 2018-11-25 16:07:37 +05:00
parent 085747b33c
commit 2e1477b9e1
3 changed files with 3 additions and 4 deletions

View File

@ -147,7 +147,7 @@ CREATE TABLE `PREFIX_boards` (
`balls` tinyint(1) NOT NULL DEFAULT '0',
`dice` tinyint(1) NOT NULL DEFAULT '0',
`useragent` tinyint(1) NOT NULL DEFAULT '0',
`duplication` tinyint(1) NOT NULL DEFAULT '0'
`duplication` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=KU_DBCHARSET COLLATE=KU_COLLATION;
@ -316,7 +316,7 @@ CREATE TABLE `PREFIX_files` (
`image_h` smallint(5) NOT NULL DEFAULT '0',
`thumb_w` smallint(5) UNSIGNED NOT NULL DEFAULT '0',
`thumb_h` smallint(5) UNSIGNED NOT NULL DEFAULT '0',
`spoiler` smallint(5) UNSIGNED NOT NULL DEFAULT '0'
`spoiler` smallint(5) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`file_id`),
INDEX `file_md5` (`file_md5`),
INDEX `file_id` (`file_id`),

View File

@ -277,7 +277,7 @@ if (!isset($tc_db) && !isset($preconfig_db_unnecessary) && !$_GLOBALS['skipdb'])
}
$results_events = $tc_db->GetAll("SELECT * FROM `" . KU_DBPREFIX . "events` WHERE `at` <= " . time());
if (count($results_events) > 0) {
if ($results_events && count($results_events) > 0) {
if ($tc_db->ErrorMsg() == '') {
foreach($results_events AS $line_events) {
if ($line_events['name'] == 'sitemap') {

View File

@ -36,7 +36,6 @@ include KU_ROOTDIR . 'inc/func/pages.php';
include KU_ROOTDIR . 'inc/func/paths.php';
include KU_ROOTDIR . 'inc/func/posts.php';
include KU_ROOTDIR . 'inc/func/stringformatting.php';
include KU_ROOTDIR . 'inc/func/validation.php';
include KU_ROOTDIR . 'inc/func/custom.php';
?>