src/dbo/fields.php 1 location
|
@@ 1694-1699 (lines=6) @@
|
| 1691 |
|
|
| 1692 |
|
$rs = dal_query('fields/fndk.sql', $state_id, ustrtolower($field_name)); |
| 1693 |
|
|
| 1694 |
|
if ($rs->rows == 0) |
| 1695 |
|
{ |
| 1696 |
|
debug_write_log(DEBUG_WARNING, '[fields_import] Created field not found.'); |
| 1697 |
|
$error = get_html_resource(RES_ALERT_UNKNOWN_ERROR_ID); |
| 1698 |
|
return FALSE; |
| 1699 |
|
} |
| 1700 |
|
|
| 1701 |
|
$row = $rs->fetch(); |
| 1702 |
|
$project_id = $row['project_id']; |
src/dbo/projects.php 1 location
|
@@ 444-449 (lines=6) @@
|
| 441 |
|
|
| 442 |
|
$rs = dal_query('projects/fndk.sql', ustrtolower($xml['name'])); |
| 443 |
|
|
| 444 |
|
if ($rs->rows == 0) |
| 445 |
|
{ |
| 446 |
|
debug_write_log(DEBUG_WARNING, '[parse_project_xml] Created project not found.'); |
| 447 |
|
$error = get_html_resource(RES_ALERT_UNKNOWN_ERROR_ID); |
| 448 |
|
return 0; |
| 449 |
|
} |
| 450 |
|
|
| 451 |
|
$project = $rs->fetch('project_id'); |
| 452 |
|
|
src/dbo/states.php 1 location
|
@@ 604-609 (lines=6) @@
|
| 601 |
|
// Find the state. |
| 602 |
|
$rs = dal_query('states/fndk2.sql', $template_id, ustrtolower($state['name'])); |
| 603 |
|
|
| 604 |
|
if ($rs->rows == 0) |
| 605 |
|
{ |
| 606 |
|
debug_write_log(DEBUG_WARNING, '[states_import] Created state not found.'); |
| 607 |
|
$error = get_html_resource(RES_ALERT_UNKNOWN_ERROR_ID); |
| 608 |
|
return FALSE; |
| 609 |
|
} |
| 610 |
|
|
| 611 |
|
$row = $rs->fetch(); |
| 612 |
|
$project_id = $row['project_id']; |
src/dbo/templates.php 1 location
|
@@ 710-715 (lines=6) @@
|
| 707 |
|
|
| 708 |
|
$rs = dal_query('templates/fndk2.sql', $project_id, ustrtolower($template['name'])); |
| 709 |
|
|
| 710 |
|
if ($rs->rows == 0) |
| 711 |
|
{ |
| 712 |
|
debug_write_log(DEBUG_WARNING, '[templates_import] Created template not found.'); |
| 713 |
|
$error = get_html_resource(RES_ALERT_UNKNOWN_ERROR_ID); |
| 714 |
|
return FALSE; |
| 715 |
|
} |
| 716 |
|
|
| 717 |
|
$template_id = $rs->fetch('template_id'); |
| 718 |
|
|