database.diff

Suggested Patch - kurtiss -, 04/16/2009 12:38 am

Download (485 Bytes)

 
Database.php (working copy)
341 341

  
342 342
		foreach ($sql as $val)
343 343
		{
344
			if (($val = trim($val)) === '') continue;
345

  
346 344
			if (is_string($val))
347 345
			{
346
				if (($val = trim($val)) === '') continue;
347

  
348 348
				// TODO: Temporary solution, this should be moved to database driver (AS is checked for twice)
349 349
				if (stripos($val, ' AS ') !== FALSE)
350 350
				{