summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordarwinel <kmorssink@gmail.com>2014-02-11 18:29:58 +0100
committerdarwinel <kmorssink@gmail.com>2014-02-11 18:29:58 +0100
commit25f119cef588a01651cec7c59d3b03924b2dd81c (patch)
tree174e1ea0458a075e3bce761efbcc01161db6f9d1
parent871754af60251993d640981e107d2def5f2db396 (diff)
Writing style fix based on style guide
„Use of || is discouraged as its clarity on some output devices is low (looking like the number 11 for instance). && is preferred over AND but either are acceptable, and a space should always precede and follow !.”
-rw-r--r--user_guide_src/source/libraries/xmlrpc.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/user_guide_src/source/libraries/xmlrpc.rst b/user_guide_src/source/libraries/xmlrpc.rst
index 2cf548750..115b4e680 100644
--- a/user_guide_src/source/libraries/xmlrpc.rst
+++ b/user_guide_src/source/libraries/xmlrpc.rst
@@ -223,17 +223,17 @@ email address, etc.). Here is how the processing function might look::
$parameters = $request->output_parameters();
- if ($parameters['1'] != $username AND $parameters['2'] != $password)
+ if ($parameters['1'] != $username && $parameters['2'] != $password)
{
return $this->xmlrpc->send_error_message('100', 'Invalid Access');
}
- $response = array(array('nickname' => array('Smitty','string'),
- 'userid' => array('99','string'),
- 'url' => array('http://yoursite.com','string'),
- 'email' => array('jsmith@yoursite.com','string'),
- 'lastname' => array('Smith','string'),
- 'firstname' => array('John','string')
+ $response = array(array('nickname' => array('Smitty', 'string'),
+ 'userid' => array('99', 'string'),
+ 'url' => array('http://yoursite.com', 'string'),
+ 'email' => array('jsmith@yoursite.com', 'string'),
+ 'lastname' => array('Smith', 'string'),
+ 'firstname' => array('John', 'string')
),
'struct');