diff --git a/application/module/Order/Order.php b/application/module/Order/Order.php index cf9ba966..a4a740f7 100644 --- a/application/module/Order/Order.php +++ b/application/module/Order/Order.php @@ -312,7 +312,7 @@ class Order public function pdfPrint($formData,$userid = 0,$save = false,$returnpdf = false) { $sql="SELECT m.title||'('||m.filesize::text||'MB)' as title FROM dataorder d - RIGHT JOIN heihemetadata m ON d.uuid=m.uuid + RIGHT JOIN normalmetadata m ON d.uuid=m.uuid WHERE d.status=2 AND d.userid=?"; $list = $this->db->fetchAll($sql,array($userid)); @@ -322,7 +322,7 @@ class Order } $sql="SELECT m.title||'('||m.filesize::text||'MB)' as title FROM dataorder d - RIGHT JOIN normalmetadata m ON d.uuid=m.uuid WHERE d.uuid not in (select uuid from heihemetadata) AND d.status=2 AND d.userid=?"; + RIGHT JOIN normalmetadata m ON d.uuid=m.uuid WHERE d.uuid not in (select uuid from normalmetadata) AND d.status=2 AND d.userid=?"; $list = $this->db->fetchAll($sql,array($userid)); foreach($list as $i=>$row){