Skip to content

Commit

Permalink
Fix missed id field
Browse files Browse the repository at this point in the history
  • Loading branch information
macik committed Feb 8, 2014
1 parent eed3cb5 commit 32d4584
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pagetextbyid/pagetextbyid.global.php
Expand Up @@ -21,6 +21,7 @@ function pagetextbyid($pid)
$last_pagetext['pid'] = $pid;
if (is_numeric($pid)) {
$res = $db->query("SELECT page_id, page_alias, page_title, page_text, page_parser FROM $db_pages WHERE page_id = ?", array((int) $pid));
$last_pagetext['id'] = $id;
} else {
$res = $db->query("SELECT page_id, page_alias, page_title, page_text, page_parser FROM $db_pages WHERE page_alias = ?", array((string) $pid));
$last_pagetext['alias'] = $pid;
Expand Down

0 comments on commit 32d4584

Please sign in to comment.