As far as I can tell the intention of this code is *not* to detect
empty strings, but `false`.
Change-Id: I406d065a54a1437fdfd46827fec9493e5fad05f9
$msg = 'read only';
} else {
$url = $store->store( $path, $data );
- if ( strlen( $url ) ) {
+ if ( $url !== false ) {
return $url; // a store accepted the write; done!
}
$msg = 'operation failed';
throw new InvalidArgumentException( "Table must be a string or Subquery." );
}
- if ( !strlen( $alias ) || $alias === $table ) {
+ if ( $alias === false || $alias === $table ) {
if ( $table instanceof Subquery ) {
throw new InvalidArgumentException( "Subquery table missing alias." );
}