Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions models/CartModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function __construct() {
* @param string $item_type Cart item type.
* @param mixed $item_details Cart item details.
*
* @return array Array containing the result of the insert operation.
* @return int Inserted row ID on success, 0 otherwise.
*/
public function add_course_to_cart( $user_id, $course_id, $item_type = '', $item_details = '' ) {
global $wpdb;
Expand Down Expand Up @@ -147,7 +147,8 @@ public function get_cart_items( $user_id, $is_details = true ) {
$select_columns,
$where,
array(),
'item.id'
'item.id',
-1
);
}

Expand Down
Loading