Open
lib/update_trigger_lib.php
Find
- Code: Select all
// Start ouput buffering
ob_start();
foreach ($triggers as $trigger)
{
$triggerfile = $triggerPath.DIR_SEP.$trigger.DIR_SEP.'trigger.php';
$triggerconf = $triggerPath.DIR_SEP.$trigger.DIR_SEP.'conf.php';
$addonDir = $triggerPath.DIR_SEP.$trigger.DIR_SEP;
if ( file_exists($triggerfile) )
{
if ( file_exists($triggerconf) )
include( $triggerconf );
include( $triggerfile );
}
}
// Get buffer contents
$ob_output .= ob_get_contents();
ob_end_clean();
if ( empty($ob_output) )
{
return '';
}
else
{
$output .= $ob_output;
}
Replace with
- Code: Select all
if( count($triggers) > 0 )
{
// Start ouput buffering
ob_start();
foreach ($triggers as $trigger)
{
$triggerfile = $triggerPath.DIR_SEP.$trigger.DIR_SEP.'trigger.php';
$triggerconf = $triggerPath.DIR_SEP.$trigger.DIR_SEP.'conf.php';
$addonDir = $triggerPath.DIR_SEP.$trigger.DIR_SEP;
if ( file_exists($triggerfile) )
{
if ( file_exists($triggerconf) )
include( $triggerconf );
include( $triggerfile );
}
}
// Get buffer contents
$ob_output .= ob_get_contents();
ob_end_clean();
if ( empty($ob_output) )
{
return '';
}
else
{
$output .= $ob_output;
}
}
else
{
$output = '';
}
And tell me your results