cvs: pearweb /include/pepr pepr.php
| From: | Tobias Schlitt | Date: | Wed, 17 Mar 2004 18:26:48 +0000 |
| Subject: | cvs: pearweb /include/pepr pepr.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-17488@lists.php.net to get a copy of this message | ||
toby Wed Mar 17 13:26:48 2004 EDT
Modified files:
/pearweb/include/pepr pepr.php
Log:
* Moved "ORDER BY timestamp" to the right place.
http://cvs.php.net/diff.php/pearweb/include/pepr/pepr.php?r1=1.24&r2=1.25&ty=u
Index: pearweb/include/pepr/pepr.php
diff -u pearweb/include/pepr/pepr.php:1.24 pearweb/include/pepr/pepr.php:1.25
--- pearweb/include/pepr/pepr.php:1.24 Wed Mar 17 07:15:33 2004
+++ pearweb/include/pepr/pepr.php Wed Mar 17 13:26:48 2004
@@ -407,7 +407,7 @@
function get ( $proposalId, $handle, $timestamp, $table =
'package_proposal_changelog') {
global $dbh;
- $sql = "SELECT *, timestamp FROM ".$table." WHERE pkg_prop_id =
".$proposalId." AND user_handle='".$handle."' AND timestamp =
FROM_UNIXTIME(".$timestamp.") ORDER BY timestamp";
+ $sql = "SELECT *, timestamp FROM ".$table." WHERE pkg_prop_id =
".$proposalId." AND user_handle='".$handle."' AND timestamp =
FROM_UNIXTIME(".$timestamp.")";
$res = $dbh->query($sql);
if (DB::isError($res)) {
return $res;
@@ -420,7 +420,7 @@
function &getAll ( $proposalId, $table = 'package_proposal_changelog' ) {
global $dbh;
- $sql = "SELECT *, timestamp FROM ".$table." WHERE pkg_prop_id =
".$proposalId;
+ $sql = "SELECT *, timestamp FROM ".$table." WHERE pkg_prop_id =
".$proposalId." ORDER BY timestamp";
$res = $dbh->query($sql);
if (DB::isError($res)) {
return $res;