Robin Bowes wrote: > Bill Shupp wrote: >> If 0.9.9.1 behaves the same way, let me know.. I have not tested with >> php 5, so that could be related. > > Bill, > > With 0.9.9.1, I get the following error when trying to change the admin > details from the initial screen: > > Notice: Undefined index: cid in > /var/www/vegadns/vegadns-0.9.9.1/src/functions.php on line 342 > You have an error in your SQL syntax; check the manual that corresponds > to your MySQL server version for the right syntax to use near '' at line 1 > > Line 342 is: > > return $_REQUEST['cid']; > > > I put some code in to print $_REQUEST and started again. > > When I went to the initial page, $_REQUEST contains this: > > Array > ( > [VDNSSessid] => lkb7cl4ab0tqn34hfksf54kk04 > [state] => logged_in > [mode] => users > [user_mode] => edit_account > [cid] => 1 > [theme] => clean > [geeklog] => 2 > [password] => 1690e1e1465cd2dcc876f5a3d1a50590 > [PHPSESSID] => ecop6v1ts4ptuucl3r5c4vd9s3 > ) > > After changing the admin values and hitting edit, it contains this: > > Array > ( > [state] => logged_in > [mode] => users > [VDNSSessid] => lkb7cl4ab0tqn34hfksf54kk04 > [user_mode] => edit_account_now > [first_name] => Robin > [last_name] => Bowes > [email_address] => [EMAIL PROTECTED] > [phone] => > [password] => 1690e1e1465cd2dcc876f5a3d1a50590 > [password2] => password > [account_type] => senior_admin > [status] => active > [theme] => clean > [geeklog] => 2 > [PHPSESSID] => ecop6v1ts4ptuucl3r5c4vd9s3 > ) > > As you can see, cid is not set in the second example. > > Any idea why?
Perhaps it's missing in the form. Can you verify that? If so, I'm surprised this has not been reported before. Regards, Bill