1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/12692] Fix languages files

PHPBB3-12692
This commit is contained in:
Tristan Darricau
2014-08-18 16:23:12 +02:00
committed by Tristan Darricau
parent 24e39545ae
commit 0f789f4d5a
3 changed files with 3 additions and 11 deletions

View File

@@ -72,10 +72,9 @@ class delete extends \phpbb\console\command\command
FROM ' . ATTACHMENTS_TABLE . '
WHERE thumbnail = 1';
$result = $this->db->sql_query($sql);
$row = $this->db->sql_fetchrow($result);
$nb_missing_thumbnails = (int) $this->db->sql_fetchfield('nb_missing_thumbnails');
$this->db->sql_freeresult($result);
$nb_missing_thumbnails = (int) $row['nb_missing_thumbnails'];
if ($nb_missing_thumbnails === 0)
{
$output->writeln('<info>' . $this->user->lang('NO_THUMBNAIL_TO_DELETE') . '</info>');