projects
/
acontent.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc05939
)
http://www.atutor.ca/atutor/mantis/view.php?id=4437
author
Cindy Li
<cli@ocad.ca>
Wed, 28 Jul 2010 19:22:18 +0000
(19:22 -0000)
committer
Cindy Li
<cli@ocad.ca>
Wed, 28 Jul 2010 19:22:18 +0000
(19:22 -0000)
docs/home/editor/editor_tabs/alternatives.inc.php
patch
|
blob
|
history
diff --git
a/docs/home/editor/editor_tabs/alternatives.inc.php
b/docs/home/editor/editor_tabs/alternatives.inc.php
index
ce86213
..
76fc8df
100644
(file)
--- a/
docs/home/editor/editor_tabs/alternatives.inc.php
+++ b/
docs/home/editor/editor_tabs/alternatives.inc.php
@@
-162,7
+162,8
@@
else
$sql = "INSERT INTO ".TABLE_PREFIX."primary_resources (content_id, resource, language_code)
VALUES (".$cid.", '".$primary_resource."', '".$_SESSION['lang']."')";
// $result = mysql_query($sql, $db);
- $primary_resource_id = $dao->execute($sql);
+ $dao->execute($sql);
+ $primary_resource_id = mysql_insert_id();
}
else
{