Warning: Invalid argument supplied for foreach() in /create-doc.php on line 24