Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
e3982882
Commit
e3982882
authored
Feb 05, 2009
by
rmerrill
Committed by
Richard Mansfield
Sep 04, 2009
Browse files
fix dml attempt to count undefined array
(cherry picked from commit 23670d2e5d77f930bfc79ecd5624ccf6e6b126e7)
parent
322674a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/dml.php
View file @
e3982882
...
...
@@ -987,6 +987,7 @@ function insert_record($table, $dataobject, $primarykey=false, $returnpk=false)
$data
=
(
array
)
$dataobject
;
// Pull out data matching these fields
$ddd
=
array
();
foreach
(
$columns
as
$column
)
{
if
(
isset
(
$data
[
$column
->
name
]))
{
if
(
$column
->
name
==
$primarykey
&&
empty
(
$setfromseq
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment