FMCorz/AclManager — Issue #3: ACO updating is not being done correctly on Cake 2.1
Author: afolgado
Created: 2012-03-06 07:42:32+00:00
State: open

When pressing "Update ACOs", it should update then the first time and report "0 acos updated" the following times. But it always find some ACOs to update.

The bug is on line 212:

$aco = substr($aco, 0, -1);	// Remove trailing slash

Sometimes the $aco string doesn't bring a trailing slash, so it's wrongly altered.

Here's the fix:

if (substr($aco, -1) == '/') {
$aco = substr($aco, 0, -1);	// Remove trailing slash
}