HEX
Server: Apache
System: Linux dev.epsylon.net 3.10.0-1160.144.1.el7.tuxcare.els2.x86_64 #1 SMP Sun Feb 15 11:22:42 UTC 2026 x86_64
User: nexper (1054)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/nexper/www/67.225.167.226/public_html/crm/include/Smarty/plugins/modifier.in_array.php
<?php
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */


/**
 * Smarty in_array modifier plugin
 *
 * Type:     modifier<br>
 * Name:     in_array<br>
 * Purpose:  check if value is in array
 * @author   Collin Lee <clee at sugarcrm com>
 * @param mixed
 * @param mixed
 * @return boolean
 */
function smarty_modifier_in_array($needle = null, $haystack = null)
{
	//Smarty barfs if Array is empty
    if($haystack == null || empty($haystack)) {
       return false;	
    }
    return in_array($needle, $haystack);
}

?>