mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 13:03:20 +00:00
Fix status bit offset
This commit is contained in:
@@ -1515,7 +1515,7 @@ class API_V1_adapter extends API_V1_Abstract
|
||||
$status = strrev($status);
|
||||
$ret = array();
|
||||
foreach ($databox->get_statusbits() as $bit => $status_datas) {
|
||||
$ret[] = array('bit' => $bit, 'state' => !!substr($status, ($bit - 1), 1));
|
||||
$ret[] = array('bit' => $bit, 'state' => !!substr($status, $bit, 1));
|
||||
}
|
||||
|
||||
return $ret;
|
||||
|
Reference in New Issue
Block a user