summaryrefslogtreecommitdiffstats
path: root/user_guide
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-05-20 12:56:34 +0200
committerDerek Allard <derek.allard@ellislab.com>2008-05-20 12:56:34 +0200
commit36a83950b4fc61e4f8d577a4156c2a94b59f0fae (patch)
tree49f5f97e42ee24a5d9bb43624f2bd8313ca37ae9 /user_guide
parent513ce070bfcbb2b59d0aabd1732b7666b90b4d83 (diff)
Fixed an example in Model docs
Diffstat (limited to 'user_guide')
-rw-r--r--user_guide/changelog.html1
-rw-r--r--user_guide/general/models.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index 5fa7c60a3..ef242b4f6 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -88,6 +88,7 @@ SVN Revision: not currently released</p>
<li>Moved the _has_operators() function (#4535) into DB_driver from DB_active_rec.</li>
<li>Fixed a syntax error in upload_lang.php.</li>
<li>Fixed a bug (#4542) with a regular expression in the Image library.</li>
+ <li>Fixed assorted user guide typos or examples (#4574).</li>
</ul>
<h2>Version 1.6.2</h2>
diff --git a/user_guide/general/models.html b/user_guide/general/models.html
index 2759f0219..52172570e 100644
--- a/user_guide/general/models.html
+++ b/user_guide/general/models.html
@@ -110,7 +110,7 @@ class&nbsp;Blogmodel&nbsp;extends&nbsp;Model&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this->content = $_POST['content'];<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this->date&nbsp;&nbsp;&nbsp; = time();<br />
<br />
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this->db->update('entries',&nbsp;$this, array('id',&nbsp;$_POST['id']));<br />
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this->db->update('entries',&nbsp;$this, array('id' => $_POST['id']));<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
<br />
}</code>