1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

Fix for 0-byte images messing up import. New Image now includes HD version. Featurebox counter fix.

This commit is contained in:
Cameron
2016-12-21 14:25:26 -08:00
parent b82ac44d71
commit 2fe231cd92
3 changed files with 23 additions and 4 deletions

View File

@@ -203,7 +203,7 @@ class plugin_featurebox_item extends e_model
public function sc_featurebox_counter($parm=1)
{
$count = $this->getParam('counter', 1);
return ($parm == 0) ? $count - 1 : $count;
return (empty($parm)) ? $count - 1 : $count;
}
/**