Mariano Iglesias írta: > Ok can you do us bakers a favour and report this to https://trac.cakephp.org > ? > > This is what you should report: > > When using a model that has no table defined (with var $useTable = false) > issuing: > > $this->Model->create($this->data); > > When $this->data is available and valid, throws: > > Notice: Undefined offset: 0 in > /home/sajt/Projectek/mediabazar2/cake/libs/model/model.php on line 885 > > Warning: array_key_exists() [function.array-key-exists]: The second > argument should be either an array or an object in > /home/sajt/Projectek/mediabazar2/cake/libs/model/model.php on line 885 > > FIX: > > On line 885 of cake/libs/model/model.php change: > > if (array_key_exists('default', $cols->value[0])) { > > to: > > if (is_array($cols->value) && array_key_exists('default', $cols->value[0])) > {
ok next time I send bugs there. But this is working with invalid datas. -- Ámon Tamás http://linkfelho.amon.hu --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---