X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FApiBundle%2FController%2FTagRestController.php;h=9d333fe4ee4f3792f1a71ea361acfbfc06e1caaf;hb=3ef055ced3d6ea0d2f15ba660602545f477e9c3c;hp=d19f122833f6980780799406a46783e6493ba9df;hpb=f40c88eb1fa349aab600f9c1c94364f317fe62dd;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/ApiBundle/Controller/TagRestController.php b/src/Wallabag/ApiBundle/Controller/TagRestController.php index d19f1228..9d333fe4 100644 --- a/src/Wallabag/ApiBundle/Controller/TagRestController.php +++ b/src/Wallabag/ApiBundle/Controller/TagRestController.php @@ -145,7 +145,7 @@ class TagRestController extends WallabagRestController $em = $this->getDoctrine()->getManager(); foreach ($tags as $tag) { - if (count($tag->getEntries()) === 0) { + if (0 === count($tag->getEntries())) { $em->remove($tag); } }