Title: [212899] trunk/Websites/webkit.org
Revision
212899
Author
j...@apple.com
Date
2017-02-23 10:18:11 -0800 (Thu, 23 Feb 2017)

Log Message

Fixed saving survey data
https://bugs.webkit.org/show_bug.cgi?id=168730

Reviewed by Joseph Pecoraro.

* wp-content/themes/webkit/functions.php:

Modified Paths

Diff

Modified: trunk/Websites/webkit.org/ChangeLog (212898 => 212899)


--- trunk/Websites/webkit.org/ChangeLog	2017-02-23 17:23:51 UTC (rev 212898)
+++ trunk/Websites/webkit.org/ChangeLog	2017-02-23 18:18:11 UTC (rev 212899)
@@ -1,3 +1,12 @@
+2017-02-23  Jon Davis  <j...@apple.com>
+
+        Fixed saving survey data
+        https://bugs.webkit.org/show_bug.cgi?id=168730
+
+        Reviewed by Joseph Pecoraro.
+
+        * wp-content/themes/webkit/functions.php:
+
 2017-02-20  Manuel Rego Casasnovas  <r...@igalia.com>
 
         Unreviewed, add CSS Grid Layout examples for a blog post.

Modified: trunk/Websites/webkit.org/wp-content/themes/webkit/functions.php (212898 => 212899)


--- trunk/Websites/webkit.org/wp-content/themes/webkit/functions.php	2017-02-23 17:23:51 UTC (rev 212898)
+++ trunk/Websites/webkit.org/wp-content/themes/webkit/functions.php	2017-02-23 18:18:11 UTC (rev 212899)
@@ -533,12 +533,14 @@
             $score[ $SurveyQuestion->question ][ $answer ]++;
         }
 
-        if ($data ="" false) {
+        if ( $data ="" false ) {
             $deprecated = null;
             $autoload = 'no';
-            add_option($option, $score, $deprecated, $autoload);
-        } else update_option($option, $score);
-
+            add_option(self::DATA_SETTING_NAME, $score, $deprecated, $autoload);
+        } else {
+            update_option(self::DATA_SETTING_NAME, $score);
+        }
+        
         $httponly = false;
         $secure = false;
         setcookie(self::cookie_name(), 1, time() + YEAR_IN_SECONDS, '/', WP_HOST, $secure, $httponly );
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to