Skip to content

Commit

Permalink
Forgot a return statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabordemooij committed Aug 26, 2015
1 parent 9248f2b commit 56e8f2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RedBeanPHP/Facade.php
Expand Up @@ -565,7 +565,7 @@ public static function dispense( $typeOrBeanArray, $num = 1, $alwaysReturnArray
*/
public static function dispenseAll( $order, $onlyArrays = FALSE )
{
DispenseHelper::dispenseAll( self::$redbean, $order, $onlyArrays );
return DispenseHelper::dispenseAll( self::$redbean, $order, $onlyArrays );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion RedBeanPHP/Util/DispenseHelper.php
Expand Up @@ -104,7 +104,7 @@ public static function dispenseAll( OODB $oodb, $order, $onlyArrays = FALSE )
$list = array();

foreach( explode( ',', $order ) as $order ) {
if ( strpos( $order, '*' ) !== false ) {
if ( strpos( $order, '*' ) !== FALSE ) {
list( $type, $amount ) = explode( '*', $order );
} else {
$type = $order;
Expand Down

0 comments on commit 56e8f2f

Please sign in to comment.