We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b02d395 commit 58e1af8Copy full SHA for 58e1af8
src/Utility/HealthPanel.php
@@ -12,6 +12,7 @@
12
13
use WebDevStudios\CCForWoo\Meta\ConnectionStatus;
14
use WebDevStudios\CCForWoo\Plugin;
15
+use WebDevStudios\CCForWoo\AbandonedCheckouts\CheckoutsTable;
16
17
/**
18
* Class HealthPanel
@@ -118,8 +119,9 @@ private function abandoned_checkouts_count() : string {
118
119
SELECT
120
count(*)
121
FROM
- {CheckoutsTable::get_table_name()}
122
+ %s
123
SQL;
- return (string) $GLOBALS['wpdb']->query( $GLOBALS['wpdb']->prepare( $query ) );
124
+ $count = (string) $GLOBALS['wpdb']->query( $GLOBALS['wpdb']->prepare( $query, CheckoutsTable::get_table_name() ) );
125
+ return ( ! empty( $count ) ) ? $count : '0';
126
}
127
0 commit comments