1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-20 05:11:42 +02:00

Code cleanup

This commit is contained in:
Cameron
2020-12-05 14:13:18 -08:00
parent d37d4bf8af
commit 09fb747374
30 changed files with 125 additions and 89 deletions

View File

@@ -582,7 +582,7 @@ class e_news_item extends e_front_model
* @param mixed $default
* @return string field value
*/
public function sc_news_field($parm = '')
public function sc_news_field($parm = null)
{
$tmp = explode('|', $parm, 2);
$field = $tmp[0];
@@ -594,7 +594,7 @@ class e_news_item extends e_front_model
$val = $this->field($field, '');
//do more with $parm array, just an example here
if(vartrue($parm['format']))
if(!empty($parm['format']))
{
switch ($parm['format'])
{