RE: Check array for duplicate

2009-04-28 Thread Dave Maharaj :: WidePixels.com
>                          //$this->User->saveField('confirmed', 0); >                          $this->set('value', $value); >                          $this->layout = 'ajax'; >                          $this->render('/errors/hack_attempt'); >              

Re: Check array for duplicate

2009-04-28 Thread brian
dePixels.com [mailto:d...@widepixels.com] > Sent: April-28-09 3:29 PM > To: cake-php@googlegroups.com > Subject: RE: Check array for duplicate > > > Ok right onseems to get me started. > > I have this in my controller but if there is a duplicate its not saving > which is

Re: Check array for duplicate

2009-04-28 Thread brian
irmed', 0); >                          $this->set('value', $value); >                          $this->layout = 'ajax'; >                          $this->render('/errors/hack_attempt'); >                      } >                  } > -Original Message- > From: bria

RE: Check array for duplicate

2009-04-28 Thread Dave Maharaj :: WidePixels.com
o:d...@widepixels.com] Sent: April-28-09 3:29 PM To: cake-php@googlegroups.com Subject: RE: Check array for duplicate Ok right onseems to get me started. I have this in my controller but if there is a duplicate its not saving which is what I want) but skipping past the }else{ Ideas what i

RE: Check array for duplicate

2009-04-28 Thread Dave Maharaj :: WidePixels.com
} -Original Message- From: brian [mailto:bally.z...@gmail.com] Sent: April-28-09 3:13 PM To: cake-php@googlegroups.com Subject: Re: Check array for duplicate $this->data['System']['System'] = array_unique($this->data['System']['Syst

Re: Check array for duplicate

2009-04-28 Thread brian
$this->data['System']['System'] = array_unique($this->data['System']['System']); On Tue, Apr 28, 2009 at 1:33 PM, Dave Maharaj :: WidePixels.com wrote: > > I have modified my form value using Firebug and I get this array (which > should never happen unless someone has edited the form and tried s