Ticket #2934: is_callable_bugfix.patch
| File is_callable_bugfix.patch, 1.1 kB (added by Kris.Wallsmith, 1 year ago) |
|---|
-
plugins/sfPropelActAsTaggableBehaviorPlugin/lib/model/TagPeer.php
old new 335 335 $c = new Criteria(); 336 336 } 337 337 338 if (!class_exists($model) || !is_callable( new $model, 'getPeer'))338 if (!class_exists($model) || !is_callable(array(new $model, 'getPeer'))) 339 339 { 340 340 throw new PropelException(sprintf('The class "%s" does not exist, or it is not a model class.', 341 341 $model)); … … 381 381 // Taggable model class option 382 382 if (isset($options['model'])) 383 383 { 384 if (!class_exists($options['model']) || !is_callable( new $options['model'], 'getPeer'))384 if (!class_exists($options['model']) || !is_callable(array(new $options['model'], 'getPeer'))) 385 385 { 386 386 throw new PropelException(sprintf('The class "%s" does not exist, or it is not a model class.', 387 387 $options['model']));