2
0
forked from Wavyzz/dolibarr

Removed PHP warnings with E_ALL level

This commit is contained in:
Laurent Destailleur
2009-01-21 15:06:34 +00:00
parent 0befb92a12
commit bcef81a453
6 changed files with 53 additions and 50 deletions

View File

@@ -1392,7 +1392,8 @@ function restrictedArea($user, $feature='societe', $objectid=0, $dbtablename='',
// Check write permission from module
$createok=1;
if ($_GET["action"] == 'create' || $_POST["action"] == 'create')
if ( (isset($_GET["action"]) && $_GET["action"] == 'create')
|| (isset($_POST["action"]) && $_POST["action"] == 'create') )
{
if ($feature == 'societe')
{