Skip to content

Commit

Permalink
Fix edit external user or not
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Nov 29, 2017
1 parent 359e82f commit 9fa6bfd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions htdocs/core/lib/functions.lib.php
Expand Up @@ -238,6 +238,17 @@ function dol_shutdown()
}


/**
* Return true if we are in a context of submitting a parameter
*
* @param string $paramname Name or parameter to test
* @return boolean True if we have just submit a POST or GET request with the parameter provided (even if param is empty)
*/
function GETPOSTISSET($paramname)
{
return (isset($_POST[$paramname]) || isset($_GET[$paramname]));
}

/**
* Return value of a param into GET or POST supervariable.
* Use the property $user->default_values[path]['creatform'] and/or $user->default_values[path]['filters'] and/or $user->default_values[path]['sortorder']
Expand Down

0 comments on commit 9fa6bfd

Please sign in to comment.