Merge pull request #1 from harshvardhanmalpani/harshvardhanmalpani-patch-2

PHP notice fixed when $join undefined
pull/44/head
Harshvardhan Malpani 2019-06-03 09:32:29 +05:30 committed by GitHub
commit 69b67a3ea6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -318,7 +318,7 @@ class DB {
$query = 'SELECT * FROM '.$table;
if($join) {
if(isset($join) && $join) {
$query .= ' ' . $join . ' ';
}
@ -544,4 +544,4 @@ class DB {
}
// DB class own Exception
class DBException extends Exception {}
class DBException extends Exception {}