Fix for deprecated db_num_rows()

CrashTest_ - November 4, 2009 - 21:18
Project:Ubercart Userpoints
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

The uc_userpoints_award.module I was getting an error because of db_num_rows(). I noticed that the db query that this was running against would only return 0 or 1, so I replaced this with !empty. Works as expected now.

AttachmentSize
uc_userpoints_award.patch664 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.