Skip to content

Instantly share code, notes, and snippets.

@mmenozzi
Created September 16, 2019 10:02
Show Gist options
  • Save mmenozzi/ab229446be20ad0364329ae349f00427 to your computer and use it in GitHub Desktop.
Save mmenozzi/ab229446be20ad0364329ae349f00427 to your computer and use it in GitHub Desktop.
Index: app/code/local/AW/Afptc/Model/Rule.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- app/code/local/AW/Afptc/Model/Rule.php (date 1568627129105)
+++ app/code/local/AW/Afptc/Model/Rule.php (date 1568627129105)
@@ -35,7 +35,7 @@
$this->setBuyXProductIds(array());
$allQuoteItems = $object->getQuote()->getAllItems();
$itemsCount = count($allQuoteItems);
- if (!count($itemsCount)) {
+ if (!$itemsCount) {
return false;
}
$freeItemsCount = array();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment