database-query() has been used at several places which should not be used.
database->select() should be used instead of database->query().

Comments

anmolgoyal74 created an issue. See original summary.

anmolgoyal74’s picture

Status: Active » Needs review
StatusFileSize
new2.96 KB

This patch will solve the issue.

anmolgoyal74’s picture

Please use this patch instead of patch given in comment 2.

nkoporec’s picture

Status: Needs review » Needs work

A couple of warnings when I try to apply the patch :

query2.patch:25: trailing whitespace.
    }  
query2.patch:41: new blank line at EOF.
+
warning: 2 lines add whitespace errors.
anmolgoyal74’s picture

Status: Needs work » Needs review
StatusFileSize
new2.15 KB
nkoporec’s picture

Status: Needs review » Reviewed & tested by the community

Hi @AnmolgoyalL74, tested your latest patch and now it applies cleanly.Good job!

gaurav.kapoor’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.