Merge pull request #3 from javmorin/bugfixes
Miscellaneous bugfixes for current release version (rebased to master)
This commit is contained in:
commit
d0db393104
2 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@ if (!empty($_GET["action"])) {
|
|||
$price = (float) $row["price"];
|
||||
$cat = (int) $row["category"];
|
||||
|
||||
$stmt = $smarty->dbh()->prepare("INSERT INTO {$opt["table_prefix"]}items(userid,description,price,source,url,comment,category,ranking,quantity) VALUES(?, ?, ?, ?, ?, ?, ?, 1, 1");
|
||||
$stmt = $smarty->dbh()->prepare("INSERT INTO {$opt["table_prefix"]}items(userid,description,price,source,url,comment,category,ranking,quantity) VALUES(?, ?, ?, ?, ?, ?, ?, 1, 1)");
|
||||
$stmt->bindParam(1, $userid, PDO::PARAM_INT);
|
||||
$stmt->bindParam(2, $desc, PDO::PARAM_STR);
|
||||
$stmt->bindParam(3, $price);
|
||||
|
|
|
@ -124,7 +124,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
{if $myitems_count > $opt.items_per_page}
|
||||
{if $myitems_count > $opt.items_per_page || $offset > 0}
|
||||
<div class="pagination">
|
||||
<ul>
|
||||
{if $offset >= $opt.items_per_page}
|
||||
|
|
Loading…
Add table
Reference in a new issue