You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-07-31 10:04:20 +03:00
AliasHandler.php:
- initStruct(): add 'editable' virtual field - add various comments AdminHandler.php: - add some comments git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1382 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
@ -128,6 +128,7 @@ class AdminHandler extends PFAHandler {
|
||||
* can be used to update additional tables, call scripts etc.
|
||||
*/
|
||||
protected function storemore() {
|
||||
# store list of allowed domains in the domain_admins table
|
||||
if (isset($this->values['domains'])) {
|
||||
if (is_array($this->values['domains'])) {
|
||||
$domains = $this->values['domains'];
|
||||
@ -173,6 +174,7 @@ class AdminHandler extends PFAHandler {
|
||||
|
||||
protected function read_from_db_postprocess($db_result) {
|
||||
foreach ($db_result as $key => $row) {
|
||||
# convert 'domains' field to an array
|
||||
if ($row['domains'] == '') {
|
||||
$db_result[$key]['domains'] = array();
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user