diff options
| author | czaks <marcin@6irc.net> | 2013-07-31 21:03:13 -0400 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2013-07-31 21:03:13 -0400 |
| commit | 83844b5e3e5e29c71f1820901928eb5030eda6cb (patch) | |
| tree | 33126ec603d83aebc5575f45e7388766de506ce9 /templates/themes/catalog/theme.php | |
| parent | 03d91df1d8af49aa1fd9e87fa8e9643b52fd52d9 (diff) | |
| parent | 0f9df0ac6608d3398cd480465dcab1b0227ec9c0 (diff) | |
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts:
inc/functions.php
Diffstat (limited to 'templates/themes/catalog/theme.php')
| -rw-r--r-- | templates/themes/catalog/theme.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/themes/catalog/theme.php b/templates/themes/catalog/theme.php index e585cf17..5c9f6769 100644 --- a/templates/themes/catalog/theme.php +++ b/templates/themes/catalog/theme.php @@ -39,7 +39,7 @@ $query = query(sprintf("SELECT *, `id` AS `thread_id`, (SELECT COUNT(*) FROM `posts_%s` WHERE `thread` = `thread_id`) AS `reply_count`, '%s' AS `board` FROM `posts_%s` WHERE `thread` IS NULL ORDER BY `bump` DESC", $board_name, $board_name, $board_name)) or error(db_error()); - while ($post = $query->fetch()) { + while ($post = $query->fetch(PDO::FETCH_ASSOC)) { $post['link'] = $config['root'] . $board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], ($post['thread'] ? $post['thread'] : $post['id'])); $post['board_name'] = $board['name']; $post['file'] = $config['uri_thumb'] . $post['thumb']; |
