Просмотр исходного кода

Merge pull request #2 from Adjokip/Adjokip-patch-1

Update custom_fields.php
Adjokip 8 лет назад
Родитель
Сommit
78f5c27e79
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      modules/user_games/custom_fields.php

+ 2 - 2
modules/user_games/custom_fields.php

@@ -146,7 +146,7 @@ function exec_ogp_module()
 						}														
 					}
 					
-					if(!empty($value)){
+					if (strlen(trim($value)) > 0) {
 						$updatedSettings[$key] = $value;
 					}
 					
@@ -180,4 +180,4 @@ function exec_ogp_module()
     $ft->add_button("submit","update_settings",get_lang('update_settings'));
     $ft->end_form();
 }
-?>
+?>