Verified Commit c3264116 authored by Cyril Vazquez's avatar Cyril Vazquez
Browse files

fix/14494 check address is an array before count to avoid warning

parent cc2bd949
Pipeline #8795 failed with stage
......@@ -299,7 +299,7 @@ class cluster
*/
public function rollbackStorage($resource)
{
if (count($resource->address)) {
if (is_array($resource->address) && count($resource->address)) {
foreach ($resource->address as $address) {
$this->repositoryController->rollbackStorage($address);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment