1
0
mirror of synced 2025-02-20 06:03:15 +03:00

Revert Expr\Base patch

This commit is contained in:
Benjamin Eberlei 2011-10-28 00:24:41 +02:00
parent c5ef21864f
commit 4a0227e5f2

View File

@ -57,7 +57,7 @@ abstract class Base
public function add($arg)
{
if ( $arg !== null ) {
if ( $arg !== null || ($arg instanceof self && $arg->count() > 0) ) {
// If we decide to keep Expr\Base instances, we can use this check
if ( ! is_string($arg)) {
$class = get_class($arg);