Skip to content

Commit 40bbd60

Browse files
committed
Adjusted return type for CI_DB_utility::backup to suggestions
1 parent 0dd2538 commit 40bbd60

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

system/database/DB_utility.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ public function backup($params = array())
417417
return gzencode($this->_backup($prefs));
418418
}
419419

420-
return '';
420+
return;
421421
}
422422

423423
}

user_guide_src/source/database/utilities.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ Class Reference
252252
.. php:method:: backup([$params = array()])
253253
254254
:param array $params: An associative array of options
255-
:returns: string
255+
:returns: raw/(g)zipped SQL query string
256256
:rtype: string
257257

258258
Perform a database backup, per user preferences.

0 commit comments

Comments
 (0)