cvs: pearweb /include/pepr pepr.php
| From: | Greg Beaver | Date: | Mon, 18 Sep 2006 15:46:09 +0000 |
| Subject: | cvs: pearweb /include/pepr pepr.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-4944@lists.php.net to get a copy of this message | ||
cellog Mon Sep 18 15:46:09 2006 UTC
Modified files:
/pearweb/include/pepr pepr.php
Log:
mysql/mysqli fix
http://cvs.php.net/viewvc.cgi/pearweb/include/pepr/pepr.php?r1=1.65&r2=1.66&diff_format=u
Index: pearweb/include/pepr/pepr.php
diff -u pearweb/include/pepr/pepr.php:1.65 pearweb/include/pepr/pepr.php:1.66
--- pearweb/include/pepr/pepr.php:1.65 Thu Aug 17 13:09:27 2006
+++ pearweb/include/pepr/pepr.php Mon Sep 18 15:46:09 2006
@@ -22,7 +22,7 @@
* @author Daniel Convissor <danielc@php.net>
* @copyright Copyright (c) 1997-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License
- * @version $Id: pepr.php,v 1.65 2006/08/17 13:09:27 wez Exp $
+ * @version $Id: pepr.php,v 1.66 2006/09/18 15:46:09 cellog Exp $
*/
/**#@+
@@ -386,7 +386,11 @@
$res->getUserInfo());
}
}
- $this->id = mysql_insert_id($dbh->connection);
+ if (function_exists('mysql_insert_id')) {
+ $this->id = mysql_insert_id($dbh->connection);
+ } else {
+ $this->id = mysqli_insert_id($dbh->connection);
+ }
}
ppLink::deleteAll($dbh, $this->id);
foreach ($this->links as $link) {