Commit 6d0417de4b3bebe04d4045d6f1a65c658b5051f3
1 parent
3f77357b
"Licensing mechanism not active after a new install until the user does an 'Update' of the plugins."
KTC-648 Merge from 3.5.4a. Committed by: Donald Jackson Reviewed by: Kevin Fourie git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@9669 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
3 changed files
with
33 additions
and
1 deletions
lib/database/dbutil.inc
thirdparty/pear/DB/common.php
| ... | ... | @@ -2030,6 +2030,22 @@ class DB_common extends PEAR |
| 2030 | 2030 | } |
| 2031 | 2031 | |
| 2032 | 2032 | // }}} |
| 2033 | + | |
| 2034 | + // {{{ getLastId() | |
| 2035 | + | |
| 2036 | + /** | |
| 2037 | + * Returns the last insert ID | |
| 2038 | + * | |
| 2039 | + * @return int | |
| 2040 | + * | |
| 2041 | + * @access public | |
| 2042 | + */ | |
| 2043 | + function getLastId() | |
| 2044 | + { | |
| 2045 | + return $this->_getLastId(); | |
| 2046 | + } | |
| 2047 | + | |
| 2048 | + // }}} | |
| 2033 | 2049 | } |
| 2034 | 2050 | |
| 2035 | 2051 | /* | ... | ... |
thirdparty/pear/DB/mysql.php
| ... | ... | @@ -904,6 +904,22 @@ class DB_mysql extends DB_common |
| 904 | 904 | |
| 905 | 905 | // }}} |
| 906 | 906 | |
| 907 | + // {{{ _getLastId() | |
| 908 | + | |
| 909 | + /** | |
| 910 | + * Returns the last insert ID | |
| 911 | + * | |
| 912 | + * @return int | |
| 913 | + * | |
| 914 | + * @access private | |
| 915 | + */ | |
| 916 | + function _getLastId() | |
| 917 | + { | |
| 918 | + return mysql_insert_id($this->connection); | |
| 919 | + } | |
| 920 | + | |
| 921 | + // }}} | |
| 922 | + | |
| 907 | 923 | } |
| 908 | 924 | |
| 909 | 925 | /* | ... | ... |