Development

#2934: is_callable_bugfix.patch

You must first sign up to be able to contribute.

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  
    335335      $c = new Criteria(); 
    336336    } 
    337337 
    338     if (!class_exists($model) || !is_callable(new $model, 'getPeer')) 
     338    if (!class_exists($model) || !is_callable(array(new $model, 'getPeer'))) 
    339339    { 
    340340      throw new PropelException(sprintf('The class "%s" does not exist, or it is not a model class.', 
    341341                                        $model)); 
     
    381381    // Taggable model class option 
    382382    if (isset($options['model'])) 
    383383    { 
    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'))) 
    385385      { 
    386386        throw new PropelException(sprintf('The class "%s" does not exist, or it is not a model class.', 
    387387                                          $options['model']));