Browse Source

ZF-9083
fixed "empty()" bug when checking for empty string values

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@21005 44c647ce-9c0f-0410-b52a-842ac1e357ba

sgehrig 16 years ago
parent
commit
f66f571c42
1 changed files with 1 additions and 1 deletions
  1. 1 1
      library/Zend/Ldap/Ldif/Encoder.php

+ 1 - 1
library/Zend/Ldap/Ldif/Encoder.php

@@ -181,7 +181,7 @@ class Zend_Ldap_Ldif_Encoder
     protected function _encodeString($string, &$base64 = null)
     {
         $string = (string)$string;
-        if (empty($string)) {
+        if (!is_numeric($string) && empty($string)) {
             return '';
         }