Ignore:
Timestamp:
Feb 28, 2010, 9:58:45 PM (14 years ago)
Author:
plg
Message:

improvement: avoid the use of @ instead of a real test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/include/functions.inc.php

    r4965 r5003  
    15041504 *
    15051505 * @param string param_name
    1506  * @param mixed param_value
     1506 * @param array param_array
    15071507 * @param boolean is_array
    15081508 * @param string pattern
     
    15101510 * @return void
    15111511 */
    1512 function check_input_parameter($param_name, $param_value, $is_array, $pattern)
    1513 {
     1512function check_input_parameter($param_name, $param_array, $is_array, $pattern)
     1513{
     1514  $param_value = null;
     1515  if (isset($param_array[$param_name]))
     1516  {
     1517    $param_value = $param_array[$param_name];
     1518  }
     1519 
    15141520  // it's ok if the input parameter is null
    15151521  if (empty($param_value))
Note: See TracChangeset for help on using the changeset viewer.