# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: Joomla root # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. --- administrator/components/com_comprofiler/comprofiler.class.php +++ administrator/components/com_comprofiler/comprofiler.class.php @@ -2209,9 +2209,9 @@ return null; } function cbSpamProtect( $userid, $count ) { - global $_CB_database; + global $_CB_database, $ueConfig; - $maxmails = 10; // mails per + $maxmails = ( isset( $ueConfig['maxEmailsPerHr'] ) ? (int) $ueConfig['maxEmailsPerHr'] : 10 ); // mails per $maxinterval = 24*3600; // hours (expressed in seconds) limit $time = time();