Re: BeforeSave and undefined index

2009-01-14 Thread Kanten
Well, that was a really embarressing error. Especially considering I used 1 hour trying to debug it. Thank you very much! /Anders On Jan 13, 6:01 pm, grigri wrote: > You wrote this: > >                $this->data['ArvcProfile']['minor_criteria'] == $minor; >                 $this->data['ArvcPro

Re: BeforeSave and undefined index

2009-01-13 Thread grigri
You wrote this: $this->data['ArvcProfile']['minor_criteria'] == $minor; $this->data['ArvcProfile']['major_criteria'] == $major; if ($major > 1 || ($major == 1 && $minor > 1) || ($minor > 3)) { $this->data['ArvcProfile'] ['cri

BeforeSave and undefined index

2009-01-13 Thread Kanten
Hi, I'm trying to do some beforesave massaging in my model but it fails with the error messages: Notice (8): Undefined index: minor_criteria [APP/models/ arvc_profile.php, line 32] Notice (8): Undefined index: major_criteria [APP/models/ arvc_profile.php, line 33] Notice (8): Undefined index: