Changeset 21014


Ignore:
Timestamp:
2011/07/04 19:49:28 (10 years ago)
Author:
nanasess
bzr:base-revision:
svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/version-2_11-dev:21013
bzr:committer:
Kentaro Ohkouchi <ohkouchi@loop-az.jp>
bzr:file-ids:

data/class/util/SC_Utils.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Futil%2FSC_Utils.php
test/class/util/SC_Utils_Test.php sc_utils_test.php-20100802013957-750m2yralg9cowkd-1
bzr:mapping-version:
v4
bzr:merge:

ohkouchi@loop-az.jp-20110704104734-7sc15sqo8g1rgxmr
bzr:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
ohkouchi@loop-az.jp-20110704104847-fr3zeq98z4253bg3
bzr:revno:
3717
bzr:revprop:branch-nick:
branches/version-2_11-dev
bzr:root:
branches/version-2_11-dev
bzr:testament:

bazaar-ng testament short form 2.1
revision-id: ohkouchi@loop-az.jp-20110704104847-fr3zeq98z4253bg3
sha1: 33194f5fe8b82502b2bae2b0f85ec3a771fcc432
bzr:text-parents:

data/class/util/SC_Utils.php svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/version-2_11-dev:21010
test/class/util/SC_Utils_Test.php ohkouchi@loop-az.jp-20110415135459-j12posg14af2xtbu
bzr:timestamp:
2011-07-04 19:48:47.351000071 +0900
bzr:user-agent:
bzr2.3.1+bzr-svn1.1.0dev0
Message:

#1398 (SC_Utils::isBlank() で, 空白文字列をのみの配列を処理できない)

Location:
branches/version-2_11-dev
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/class/util/SC_Utils.php

    r21010 r21014  
    20242024                    return true; 
    20252025                } 
     2026                $array_result = true; 
    20262027                foreach ($val as $in) { 
    20272028                    /* 
     
    20292030                     * 自クラスへ再帰する. 
    20302031                     */ 
    2031                     if (!SC_Utils::isBlank($in, $greedy)) { 
     2032                    $array_result = SC_Utils::isBlank($in, $greedy); 
     2033                    if (!$array_result) { 
    20322034                        return false; 
    20332035                    } 
    20342036                } 
     2037                return $array_result; 
    20352038            } else { 
    20362039                return empty($val); 
  • branches/version-2_11-dev/test/class/util/SC_Utils_Test.php

    r20847 r21014  
    117117        $this->assertFalse(SC_Utils::isBlank($zero)); 
    118118        $this->assertFalse(SC_Utils::isBlank($zero, false)); 
     119 
     120        $emptyArray[0] = ""; 
     121        $this->assertTrue(SC_Utils::isBlank($emptyArray)); 
    119122    } 
    120123 
Note: See TracChangeset for help on using the changeset viewer.