summaryrefslogtreecommitdiff
path: root/admin/admin_feed_inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/admin_feed_inc.php')
-rwxr-xr-xadmin/admin_feed_inc.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/admin/admin_feed_inc.php b/admin/admin_feed_inc.php
index b3e2512..bef32ce 100755
--- a/admin/admin_feed_inc.php
+++ b/admin/admin_feed_inc.php
@@ -12,7 +12,7 @@ if( !empty( $_REQUEST['store_feed'] ) ) {
foreach ( array_keys( $contentTypes ) as $type ){
if( !empty( $_REQUEST[$type]['conjugation_phrase'] ) || !empty( $_REQUEST[$type]['is_target_linked'] ) ) {
$insertSql = "INSERT INTO feed_conjugation (content_type_guid, conjugation_phrase, is_target_linked) VALUES ( ?, ?, ?)";
- $gBitDb->query($insertSql, array( $type, $_REQUEST[$type]['conjugation_phrase'], empty($_REQUEST[$type]['is_target_linked'])?'y' : null ) );
+ $gBitDb->query($insertSql, [ $type, $_REQUEST[$type]['conjugation_phrase'], empty($_REQUEST[$type]['is_target_linked'])?'y' : null ] );
}
}
@@ -21,8 +21,6 @@ if( !empty( $_REQUEST['store_feed'] ) ) {
$contentTypes = get_content_types();
$gBitSmarty->assign('contentTypes',$contentTypes);
-
-
function get_content_types(){
global $gBitDb;
$selectSql = "SELECT lct.content_type_guid,conjugation_phrase, is_target_linked FROM liberty_content_types lct LEFT JOIN feed_conjugation fc ON (fc.content_type_guid = lct.content_type_guid)";